python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / sdl_mixer / 0002-add-LDFLAGS-while-linking.patch
blob414466074135bfabaa4f0459c7455d4203fdd0a8
1 Pass LDFLAGS while creating binaries.
3 Fixes following linking error with uClibc-ng:
4 br/output/host/usr/lib/gcc/powerpc-buildroot-linux-uclibc/5.4.0/libgcc.a(unwind-dw2-fde-dip.o): In function `_Unwind_Find_FDE':
5 br/output/build/host-gcc-final-5.4.0/build/powerpc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:465: undefined reference to `dl_iterate_phdr'
6 collect2: error: ld returned 1 exit status
8 Since uClibc-ng 1.0.18 a circular dependency between libc and libgcc
9 exist, when static linking is used. It can be resolved by the compiler
10 when -static is correctly passed in the linking step.
12 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
14 diff -Nur SDL_mixer-1.2.12.orig/Makefile.in SDL_mixer-1.2.12/Makefile.in
15 --- SDL_mixer-1.2.12.orig/Makefile.in 2012-01-15 23:01:04.000000000 +0100
16 +++ SDL_mixer-1.2.12/Makefile.in 2016-12-07 08:29:22.479786596 +0100
17 @@ -66,10 +66,10 @@
18 $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
20 $(objects)/playwave$(EXE): $(objects)/playwave.lo $(objects)/$(TARGET)
21 - $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
22 + $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(LDFLAGS) $(objects)/$(TARGET)
24 $(objects)/playmus$(EXE): $(objects)/playmus.lo $(objects)/$(TARGET)
25 - $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
26 + $(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(LDFLAGS) $(objects)/$(TARGET)
28 install: all install-hdrs install-lib #install-bin
29 install-hdrs: