Skip to content

Commit

Permalink
Fix ZAPDTR linking order for linux builds (#825)
Browse files Browse the repository at this point in the history
* Fix ZAPDTR linking order for linux builds

* Fix linking on macos
  • Loading branch information
GaryOderNichts authored Jul 18, 2022
1 parent edfa369 commit 97d1f0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ZAPDTR/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ ifneq ($(DEPRECATION_ON),0)
endif
# CXXFLAGS += -DTEXTURE_DEBUG

LDFLAGS := -lm -ldl \
-L../StormLib/build -L../libultraship -lbz2 -pthread -lultraship -lstorm
LDFLAGS := -Llib/libgfxd -L../libultraship -L../StormLib/build \
-pthread -lgfxd -lultraship ZAPDUtils/ZAPDUtils.a -lstorm -lbz2 -lm -ldl

ifeq ($(UNAME), Darwin)
LDFLAGS += $(shell pkg-config --libs glew libpng zlib) $(shell sdl2-config --libs) -framework OpenGL -framework Foundation
Expand Down Expand Up @@ -137,4 +137,4 @@ ZAPDUtils:

# Linking
ZAPD.out: $(O_FILES) lib/libgfxd/libgfxd.a ExporterTest ZAPDUtils StormLib
$(CXX) $(CXXFLAGS) $(O_FILES) lib/libgfxd/libgfxd.a ZAPDUtils/ZAPDUtils.a ../StormLib/build/libstorm.a $(EXPORTERS) $(LDFLAGS) $(OUTPUT_OPTION)
$(CXX) $(CXXFLAGS) $(O_FILES) $(EXPORTERS) $(LDFLAGS) $(OUTPUT_OPTION)

0 comments on commit 97d1f0e

Please sign in to comment.