From: | "Jory Pratt (anarchy)" <anarchy@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/nspr/files: nspr-4.8.9-link-flags.patch |
Date: | Tue, 10 Jan 2012 02:14:48 |
Message-Id: | 20120110021437.74C332004E@flycatcher.gentoo.org |
1 | anarchy 12/01/10 02:14:37 |
2 | |
3 | Added: nspr-4.8.9-link-flags.patch |
4 | Log: |
5 | Ensure cflags are passed during linking, bug #365975 |
6 | |
7 | (Portage version: 2.1.10.44/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-libs/nspr/files/nspr-4.8.9-link-flags.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/files/nspr-4.8.9-link-flags.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/files/nspr-4.8.9-link-flags.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: nspr-4.8.9-link-flags.patch |
16 | =================================================================== |
17 | Use CFLAGS when linking. Some flags can add functionality to generated |
18 | code that requires extra libs to be linked in (eg. libgomp when using |
19 | autoparallelization). Other flags are required when building and linking |
20 | (eg. -flto). |
21 | |
22 | https://bugs.gentoo.org/365975 |
23 | |
24 | --- a/mozilla/nsprpub/config/autoconf.mk.in |
25 | +++ b/mozilla/nsprpub/config/autoconf.mk.in |
26 | @@ -81,6 +81,7 @@ OS_DLLFLAGS = @OS_DLLFLAGS@ |
27 | DLLFLAGS = @DLLFLAGS@ |
28 | EXEFLAGS = @EXEFLAGS@ |
29 | OPTIMIZER = @OPTIMIZER@ |
30 | +LD_CFLAGS = @CFLAGS@ |
31 | |
32 | PROFILE_GEN_CFLAGS = @PROFILE_GEN_CFLAGS@ |
33 | PROFILE_GEN_LDFLAGS = @PROFILE_GEN_LDFLAGS@ |
34 | --- a/mozilla/nsprpub/config/config.mk |
35 | +++ b/mozilla/nsprpub/config/config.mk |
36 | @@ -72,7 +72,7 @@ NOMD_CFLAGS = $(CC_ONLY_FLAGS) $(OPTIMIZER) $(NOMD_OS_CFLAGS)\ |
37 | NOMD_CCFLAGS = $(CCC_ONLY_FLAGS) $(OPTIMIZER) $(NOMD_OS_CFLAGS)\ |
38 | $(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS) |
39 | |
40 | -LDFLAGS = $(OS_LDFLAGS) |
41 | +LDFLAGS = $(LD_CFLAGS) $(OS_LDFLAGS) |
42 | |
43 | # Enable profile-guided optimization |
44 | ifdef MOZ_PROFILE_GENERATE |