blob: 9ed5d29bbf2fa9a1d6666e8205d0d045344920c1 (
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
|
Respect user LDFLAGS
http://bugs.gentoo.org/126825
--- include/buildmacros
+++ include/buildmacros
@@ -9,7 +9,8 @@
# $(CXXFILES), or $(HFILES) and is used to construct the manifest list
# during the "dist" phase (packaging).
-LDFLAGS = $(LLDFLAGS)
+LDFLAGS += $(LDFLAGS_OPT) $(LLDFLAGS)
+LTLDFLAGS += $(LDFLAGS_OPT)
LDLIBS = $(LLDLIBS) $(PLDLIBS) $(MALLOCLIB)
MAKEOPTS = --no-print-directory
--- include/builddefs.in
+++ include/builddefs.in
@@ -9,6 +9,7 @@
DEBUG = @debug_build@
OPTIMIZER = @opt_build@
+LDFLAGS_OPT = @LDFLAGS@
MALLOCLIB = @malloc_lib@
LIBATTR = $(TOPDIR)/libattr/libattr.la
|