Browse Source

Use whole archive for static libs on Windows.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
ba0c0d091c
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      Makefile

+ 6
- 2
Makefile View File

@@ -21,9 +21,11 @@ ifdef ARCH_LIN
SOURCES += dep/osdialog/osdialog_gtk2.c
build/dep/osdialog/osdialog_gtk2.c.o: FLAGS += $(shell pkg-config --cflags gtk+-2.0)

LDFLAGS += -rdynamic -Wl,--whole-archive \
LDFLAGS += -rdynamic \
-Wl,--whole-archive \
dep/lib/libGLEW.a dep/lib/libglfw3.a dep/lib/libjansson.a dep/lib/libcurl.a dep/lib/libssl.a dep/lib/libcrypto.a dep/lib/libzip.a dep/lib/libz.a dep/lib/libspeexdsp.a dep/lib/libsamplerate.a dep/lib/librtmidi.a dep/lib/librtaudio.a \
-Wl,--no-whole-archive -lpthread -lGL -ldl -lX11 -lasound -ljack \
-Wl,--no-whole-archive \
-lpthread -lGL -ldl -lX11 -lasound -ljack \
$(shell pkg-config --libs gtk+-2.0)
TARGET := Rack
endif
@@ -42,7 +44,9 @@ endif
ifdef ARCH_WIN
SOURCES += dep/osdialog/osdialog_win.c
LDFLAGS += -Wl,--export-all-symbols,--out-implib,libRack.a -mwindows \
-Wl,--whole-archive \
dep/lib/libglew32.a dep/lib/libglfw3.a dep/lib/libjansson.a dep/lib/libspeexdsp.a dep/lib/libsamplerate.a dep/lib/libzip.a dep/lib/libz.a dep/lib/libcurl.a dep/lib/libssl.a dep/lib/libcrypto.a dep/lib/librtaudio.a dep/lib/librtmidi.a \
-Wl,--no-whole-archive \
-lpthread -lopengl32 -lgdi32 -lws2_32 -lcomdlg32 -lole32 -ldsound -lwinmm -lksuser -lshlwapi -lmfplat -lmfuuid -lwmcodecdspuuid -ldbghelp
TARGET := Rack.exe
OBJECTS += Rack.res


Loading…
Cancel
Save