sdl_mixer: fix static linking issue
PATCH 1/1 sdl_mixer: fix static linking issue
LDFLAGS must be passed when creating binaries.
Signed-off-by Waldemar Brodkorb <[email protected]>
---
while testing the berkeley db fix, this error occured afterwards, so no autobuilder reference.
--- .../sdl_mixer/0002-add-LDFLAGS-while-linking.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch
package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch new file +20 -0
@@ -0,0 +1,20 @@ +Pass LDFLAGS while creating binaries. + +Signed-off-by: Waldemar Brodkorb <[email protected]> + +diff -Nur SDL_mixer-1.2.12.orig/Makefile.in SDL_mixer-1.2.12/Makefile.in +--- SDL_mixer-1.2.12.orig/Makefile.in 2012-01-15 23:01:04.000000000 +0100 ++++ SDL_mixer-1.2.12/Makefile.in 2016-12-07 08:29:22.479786596 +0100 +@@ -66,10 +66,10 @@ + $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS) + + $(objects)/playwave$(EXE): $(objects)/playwave.lo $(objects)/$(TARGET) +- $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET) ++ $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(LDFLAGS) $(objects)/$(TARGET) + + $(objects)/playmus$(EXE): $(objects)/playmus.lo $(objects)/$(TARGET) +- $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET) ++ $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(LDFLAGS) $(objects)/$(TARGET) + + install: all install-hdrs install-lib #install-bin + install-hdrs:
Signature · 1 line
2.1.4
PATCH 1/1 sdl_mixer: fix static linking issue
Hello,
Quoted 6 lines · Waldemar Brodkorb
LDFLAGS must be passed when creating binaries.
Signed-off-by Waldemar Brodkorb <[email protected]>---
while testing the berkeley db fix, this error occured afterwards, so no autobuilder reference.
Sounds good...
package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch line 1
Quoted 12 lines
--- .../sdl_mixer/0002-add-LDFLAGS-while-linking.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/sdl_mixer/0002-add-LDFLAGS-while-linking.patchpackage/sdl_mixer/0002-add-LDFLAGS-while-linking.patch new file +1
-0@@ -0,0 +1,20 @@ +Pass LDFLAGS while creating binaries.
... but please add more details here about *why* we're doing this.
package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch line 3
Quoted 2 lines
package/sdl_mixer/0002-add-LDFLAGS-while-linking.patch new file +2
-0+ +Signed-off-by: Waldemar Brodkorb <[email protected]>
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com