From: | "Fabian Groffen (grobian)" <grobian@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in mail-mta/exim/files: exim-4.76-as-needed.patch |
Date: | Mon, 04 Jul 2011 10:28:22 |
Message-Id: | 20110704102812.93AC42004B@flycatcher.gentoo.org |
1 | grobian 11/07/04 10:28:12 |
2 | |
3 | Added: exim-4.76-as-needed.patch |
4 | Log: |
5 | Fix linking order such that linking works correctly with as-needed, bug #352265 |
6 | |
7 | (Portage version: 2.2.0_alpha41/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 mail-mta/exim/files/exim-4.76-as-needed.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim-4.76-as-needed.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/exim/files/exim-4.76-as-needed.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: exim-4.76-as-needed.patch |
16 | =================================================================== |
17 | https://bugs.gentoo.org/show_bug.cgi?id=352265 |
18 | |
19 | Make sure LDFLAGS comes first, such that all libraries are considered, |
20 | and not discarded when --as-needed is in effect. |
21 | |
22 | --- OS/Makefile-Base |
23 | +++ OS/Makefile-Base |
24 | @@ -327,12 +327,12 @@ |
25 | $(FE)$(CC) -c $(CFLAGS) $(INCLUDE) $(IPV6_INCLUDE) $(TLS_INCLUDE) version.c |
26 | rm -f exim |
27 | @echo "$(LNCC) -o exim" |
28 | - $(FE)$(PURIFY) $(LNCC) -o exim $(LFLAGS) $(OBJ_EXIM) version.o \ |
29 | + $(FE)$(PURIFY) $(LNCC) -o exim $(LDFLAGS) $(OBJ_EXIM) version.o \ |
30 | routers/routers.a transports/transports.a lookups/lookups.a \ |
31 | auths/auths.a pdkim/pdkim.a \ |
32 | $(LIBRESOLV) $(LIBS) $(LIBS_EXIM) $(IPV6_LIBS) $(EXTRALIBS) \ |
33 | $(EXTRALIBS_EXIM) $(DBMLIB) $(LOOKUP_LIBS) $(AUTH_LIBS) \ |
34 | - $(PERL_LIBS) $(TLS_LIBS) $(PCRE_LIBS) $(LDFLAGS) |
35 | + $(PERL_LIBS) $(TLS_LIBS) $(PCRE_LIBS) $(LFLAGS) |
36 | @if [ x"$(STRIP_COMMAND)" != x"" ]; then \ |
37 | echo $(STRIP_COMMAND) exim; \ |
38 | $(STRIP_COMMAND) exim; \ |