You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-lang/icon/files/icon-9.5.0-flags.patch

76 lines
2.1 KiB

--- icon-v950src/ipl/cfuncs/Makefile
+++ icon-v950src/ipl/cfuncs/Makefile
@@ -25,7 +25,7 @@
# library
$(FUNCLIB): $(FUNCS) mklib.sh
- CC="$(CC)" CFLAGS="$(CFLAGS)" BIN="../../bin" \
+ CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" BIN="../../bin" \
sh mklib.sh $(FUNCLIB) $(FUNCS)
$(FUNCS): icall.h
--- icon-v950src/ipl/cfuncs/mklib.sh
+++ icon-v950src/ipl/cfuncs/mklib.sh
@@ -12,7 +12,7 @@
set -x
case "$SYS" in
Linux*|*BSD*|GNU*)
- $CC -shared -o $LIBNAME -fPIC "$@";;
+ $CC -shared -o $LIBNAME $CFLAGS $LDFLAGS -fPIC "$@";;
CYGWIN*)
# move the win32 import library for iconx.exe callbacks
# created when iconx.exe was built
--- icon-v950src/ipl/packs/loadfunc/Makefile
+++ icon-v950src/ipl/packs/loadfunc/Makefile
@@ -28,7 +28,7 @@
echo '$$define FUNCLIB "./$(FUNCLIB)"' >libnames.icn
$(FUNCLIB): $(FUNCS)
- CC="$(CC)" CFLAGS="$(CFLAGS)" BIN="../../../bin" \
+ CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" BIN="../../../bin" \
sh $(MKLIB) $(FUNCLIB) $(FUNCS)
--- icon-v950src/src/common/Makefile
+++ icon-v950src/src/common/Makefile
@@ -8,7 +8,7 @@
common: $(OBJS) gpxmaybe
patchstr: patchstr.c
- $(CC) $(CFLAGS) -o patchstr patchstr.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o patchstr patchstr.c
gpxmaybe:
-if [ "x$(XL)" != "x" ]; then $(MAKE) $(GDIR); fi
@@ -25,7 +25,7 @@
../h/typedefs.h ../h/mproto.h ../h/cpuconf.h
../h/arch.h: infer.c
- $(CC) $(CFLAGS) -o infer infer.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o infer infer.c
./infer >../h/arch.h
identify.o: ../h/version.h
--- icon-v950src/src/rtt/Makefile
+++ icon-v950src/src/rtt/Makefile
@@ -22,7 +22,7 @@
rtt: $(OBJ)
- $(CC) $(LDFLAGS) -o rtt $(OBJ)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o rtt $(OBJ)
library: $(OBJ)
rm -rf rtt.a
--- icon-v950src/src/runtime/Makefile
+++ icon-v950src/src/runtime/Makefile
@@ -30,7 +30,7 @@
iconx: $(COBJS) $(XOBJS)
cd ../common; $(MAKE)
- $(CC) $(RLINK) -o iconx $(XOBJS) $(COBJS) $(XL) $(RLIBS) $(TLIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(RLINK) -o iconx $(XOBJS) $(COBJS) $(XL) $(RLIBS) $(TLIBS)
cp iconx ../../bin
strip $(SFLAGS) ../../bin/iconx$(EXE)