Skip to content
Browse files

build: fix build with -Wl,--as-needed

Newer distros link with -Wl,--as-needed by default. Change link order to
accommodate that.
  • Loading branch information...
1 parent 3d73121 commit 9165cf5b09a155f723c3dd63f653164b27e4e49b @bnoordhuis committed Jul 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
View
4 Makefile
@@ -89,11 +89,11 @@ release: CFLAGS += $(RELEASE_CFLAGS)
release: $(EXEC)
$(EXEC): $(GAME_OBJS)
- $(CC) $(LDFLAGS) -o $@ $(GAME_OBJS)
+ $(CC) -o $@ $(GAME_OBJS) $(LDFLAGS)
strip $@
$(EXEC)_g: $(GAME_OBJS)
- $(CC) $(LDFLAGS) -o $@ $(GAME_OBJS)
+ $(CC) -o $@ $(GAME_OBJS) $(LDFLAGS)
#############################################################################
# MISC

0 comments on commit 9165cf5

Please sign in to comment.
Something went wrong with that request. Please try again.