Gentoo Archives: gentoo-dev

From: Samuli Suominen <ssuominen@g.o>
To: gentoo-dev@l.g.o, hasufell@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in media-libs/libsdl2/files: libsdl2-2.0.3-static-libs.patch
Date: Mon, 12 May 2014 16:00:46
Message-Id: 5370EFE5.5030901@gentoo.org
1 On 12/05/14 18:56, Julian Ospald (hasufell) wrote:
2 > hasufell 14/05/12 15:56:05
3 >
4 > Added: libsdl2-2.0.3-static-libs.patch
5 > Log:
6 > version bump
7 >
8 > (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
9 >
10 > Revision Changes Path
11 > 1.1 media-libs/libsdl2/files/libsdl2-2.0.3-static-libs.patch
12 >
13 > file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/files/libsdl2-2.0.3-static-libs.patch?rev=1.1&view=markup
14 > plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libsdl2/files/libsdl2-2.0.3-static-libs.patch?rev=1.1&content-type=text/plain
15 >
16 > Index: libsdl2-2.0.3-static-libs.patch
17 > ===================================================================
18 > --- SDL2-2.0.2.orig/Makefile.in
19 > +++ SDL2-2.0.2/Makefile.in
20 > @@ -33,10 +33,10 @@
21 > OBJECTS = @OBJECTS@
22 > VERSION_OBJECTS = @VERSION_OBJECTS@
23 >
24 > -SDLMAIN_TARGET = libSDL2main.a
25 > +SDLMAIN_TARGET = libSDL2main.la
26 > SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
27 >
28 > -SDLTEST_TARGET = libSDL2_test.a
29 > +SDLTEST_TARGET = libSDL2_test.la
30 > SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
31 >
32 > SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake configure configure.in debian include Makefile.* sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test VisualC.html VisualC Xcode Xcode-iOS
33 > @@ -123,15 +123,13 @@
34 > .PHONY: all update-revision install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist $(OBJECTS:.lo=.d)
35 >
36 > $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
37 > - $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
38 > + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
39
40 You know that adding $(LDFLAGS) so late in the linker line makes whole
41 -Wl,--as-needed get ignored? Should almost certainly be $(CC) $(LDFLAGS)
42 $(CFLAGS) ...
43
44 - Samuli

Replies