~vojtech-horky/helenos/coastline-qemu

« back to all changes in this revision

Viewing changes to libpng/HARBOUR

  • Committer: Vojtech Horky
  • Date: 2017-08-07 14:28:40 UTC
  • mfrom: (104.1.27 coastline)
  • Revision ID: vojtechhorky@users.sourceforge.net-20170807142840-nj7i0b2i0py5o5qh
MergeĀ upstreamĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
                run sed 's/^cross_compiling=no/cross_compiling=yes/' -i "$fname"
44
44
        done
45
45
 
46
 
        msg "Purging HelenOS config.h, declaring compiler flags..."
47
 
        sed -e '/PLATFORM/d' -e '/PROCESSOR/d' -e '/COMPILER/d' "$HSCT_CACHE_DIR/include/system_config.h" >helenos_config.h
48
 
        fixed_cflags="`echo $HSCT_CFLAGS | sed 's#-imacros[ \t]\+[^ \t]*/system_config\.h#-imacros '$PWD'/helenos_config.h#'`"
49
 
 
50
 
        # Extract preprocessor flags
51
 
        ppflags=""
52
 
        for flag in $fixed_cflags; do
53
 
                if echo "$flag" | grep -q '^-I'; then
54
 
                        ppflags="$ppflags $flag";
55
 
                fi
56
 
                if echo "$flag" | grep -q '^-D'; then
57
 
                        ppflags="$ppflags $flag";
58
 
                fi
59
 
        done
60
 
 
61
 
        ldflags_math="-Wl,--whole-archive -Wl,-lfdm -Wl,--no-whole-archive"
62
 
 
63
46
        run ./configure \
64
47
                --disable-shared\
65
48
                CC="$HSCT_CC" \
66
 
                CFLAGS="$HSCT_CFLAGS -I$HSCT_INCLUDE_DIR $HSCT_LDFLAGS_FOR_CC -L$HSCT_LIB_DIR -lz $ldflags_math -Wl,--undefined=longjmp" \
 
49
                CFLAGS="$HSCT_CFLAGS -I$HSCT_INCLUDE_DIR -L$HSCT_LIB_DIR -Wl,--undefined=longjmp" \
67
50
                LD="$HSCT_LD" \
68
 
                CPPFLAGS="-imacros $PWD/helenos_config.h $ppflags -I$HSCT_INCLUDE_DIR"
 
51
                CPPFLAGS="-specs=$HSCT_CACHE_DIR/coastline.specs -I$HSCT_INCLUDE_DIR"
69
52
 
70
53
        run make all-am STATIC_ONLY=y
71
54
}