forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
icon-9.5.0-flags.patch
75 lines (61 loc) · 2.1 KB
/
icon-9.5.0-flags.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
--- 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)