apartmentEmulator / mupen64plus

Automatically exported from code.google.com/p/mupen64plus
0 stars 0 forks source link

light_input/Makefile linker parameter order wrong #236

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
gcc+linker still need a specific order to allow correct linkage. You must
allways specify *.o before -l... to prevent a linking error. It can be
tested by running:
LDFLAGS="-Wl,--as-needed" /usr/bin/make all

Fix is to change
-       $(CC) -o $@ -shared $(LDFLAGS) $(PLUGIN_LDFLAGS) $(SDL_LIBS)
$(SDLTTF_LIBS) $(FREETYPE_LIBS) $^
+       $(CC) -o $@ -shared $^ $(LDFLAGS) $(PLUGIN_LDFLAGS) $(SDL_LIBS)
$(SDLTTF_LIBS) $(FREETYPE_LIBS)

Original issue reported on code.google.com by sven@narfation.org on 2 Jun 2009 at 3:37

GoogleCodeExporter commented 8 years ago
http://git.debian.org/?p=collab-maint/mupen64plus.git;a=tree;f=debian/patches 
has a
fix for that and another place (fixes also issue 234)

Original comment by sven@narfation.org on 2 Jun 2009 at 7:02

Attachments:

GoogleCodeExporter commented 8 years ago
fixed rev 1390

Original comment by richard...@gmail.com on 8 Jun 2009 at 8:58