blob: e10808f00acb2e3fc8913c16c7625be56db80f06 (
plain)
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
|
Respect user LDFLAGS
http://bugs.gentoo.org/show_bug.cgi?id=237698
--- src/Makefile
+++ src/Makefile
@@ -49,7 +49,7 @@
all: $(PROG)
$(PROG): $(OBJS)
- $(CC) $(OBJS) $(LDPATH) $(LIBS) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LDPATH) $(LIBS) -o $@
$(OBJS): %.o: %.c $(HEADERS)
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -c $< -o $@
--- clients/Makefile
+++ clients/Makefile
@@ -48,16 +48,16 @@
set-gnome-pda: $(MYLIBDIR)/panel.o $(AELIBDIR)/gnome-pda.o
$(GTKPROGS): %: %.o
- $(CC) $^ $(GTKLIBS) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(GTKLIBS) -o $@
$(XAWPROGS): %: %.o
- $(CC) $^ $(XAWLIBS) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(XAWLIBS) -o $@
$(X11PROGS): %: %.o
- $(CC) $^ $(X11LIBS) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(X11LIBS) -o $@
$(ETCPROGS): %: %.o
- $(CC) $^ -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
# --------------------------------------------------------------------
|