http://bugs.gentoo.org/258331 http://bugs.gentoo.org/310257 http://bugs.gentoo.org/331067 --- modules/alsa/Makefile +++ modules/alsa/Makefile @@ -31,7 +31,7 @@ all: $(LIB) $(LIB): $(OBJSPIC) - $(CC) $(SHFLAGS) -o ../../bin/gcc/$@ $(OBJSPIC) $(EXTRALIBS) -L../../bin/gcc -lgpac -lasound + $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJSPIC) $(EXTRALIBS) -L../../bin/gcc -lgpac -lasound %.o: %.c --- modules/jack/Makefile +++ modules/jack/Makefile @@ -32,7 +32,7 @@ all: $(LIB) $(LIB): $(OBJSPIC) - $(CC) $(SHFLAGS) -o ../../bin/gcc/$@ $(OBJSPIC) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -ljack + $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJSPIC) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -ljack %.o: %.c --- modules/pulseaudio/Makefile +++ modules/pulseaudio/Makefile @@ -31,7 +31,7 @@ all: $(LIB) $(LIB): $(OBJSPIC) - $(CC) $(SHFLAGS) -o ../../bin/gcc/$@ $(OBJSPIC) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -lpulse-simple + $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJSPIC) $(EXTRALIBS) -L../../bin/gcc -lgpac -L/usr/lib -lpulse-simple %.o: %.c --- modules/oss_audio/Makefile +++ modules/oss_audio/Makefile @@ -40,7 +40,7 @@ all: $(LIB) $(LIB): $(OBJSPIC) - $(CC) $(SHFLAGS) -o ../../bin/gcc/$@ $(OBJSPIC) $(EXTRALIBS) -L../../bin/gcc -lgpac $(OSS_LDFLAGS) + $(CC) $(SHFLAGS) $(LDFLAGS) -o ../../bin/gcc/$@ $(OBJSPIC) $(EXTRALIBS) -L../../bin/gcc -lgpac $(OSS_LDFLAGS) %.o: %.c