medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit a2b502944b1431c96a15fc46b40cc67d14cafec8
parent 03cc52c5115283d0b863239ae60e0d007621e8c6
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu Dec 29 15:51:05 +0200

Only link medfall with --export-dynamic

Diffstat:
Makefile | 3++-
rules.mk | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -21,7 +21,8 @@ hm.so: hm.o heightmap.o terrain_manager.o lz4.o btt.o gpubtt.o skybox.o http.o btt.so: mod_btt.o btt.o gpubtt.o heightmap.o skybox.o stb_image.o lz4.o sm.so: shadow_map.o -# Special CXXFLAGS +# Special CXXFLAGS/LDFLAGS +medfall: LDFLAGS += -Wl,--export-dynamic lz4.o: CXXFLAGS += -O3 lz4hc.o: CXXFLAGS += -O3 xxhash.o: CXXFLAGS += -O3 diff --git a/rules.mk b/rules.mk @@ -3,7 +3,7 @@ # Create the binaries $(BINS): %: @echo -e "\e[1;31mbuilding $@\e[0m" - $(CXX) -o $@ $^ $(LDFLAGS) -Wl,--export-dynamic + $(CXX) -o $@ $^ $(LDFLAGS) # Create stb_*.cc and then stb_*.o STB_OBJS := $(addprefix stb_,$(addsuffix .o,$(STBS)))