Browse Source

Linker flags are also OS-specific

pull/18/head
Rafal Kupiec 3 years ago
parent
commit
3267ddd7ee
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      Makefile

+ 6
- 1
Makefile View File

@ -8,7 +8,7 @@ DFLAGS = -O0 -g
RFLAGS = -O3 -s
# Flags to pass to the linker
LFLAGS = -Wl,--export-dynamic -rdynamic
LFLAGS =
##############################################
### Do not modify anything below this line ###
@ -24,6 +24,7 @@ ifeq "$(PLATFORM)" "Darwin"
MD := mkdir -p
RM := rm -rfv
LIBS := -ldl -lm
LFLAGS := $(LFLAGS) -Wl,--export-dynamic -rdynamic
ESUFFIX :=
LSUFFIX := .dylib
endif
@ -32,6 +33,7 @@ ifeq "$(PLATFORM)" "FreeBSD"
MD := mkdir -p
RM := rm -rfv
LIBS := -lm
LFLAGS := $(LFLAGS) -Wl,--export-dynamic -rdynamic
ESUFFIX :=
LSUFFIX := .so
endif
@ -40,6 +42,7 @@ ifeq "$(PLATFORM)" "Linux"
MD := mkdir -p
RM := rm -rfv
LIBS := -ldl -lm
LFLAGS := $(LFLAGS) -Wl,--export-dynamic -rdynamic
ESUFFIX :=
LSUFFIX := .so
endif
@ -48,6 +51,7 @@ ifeq "$(PLATFORM)" "OpenBSD"
MD := mkdir -p
RM := rm -rfv
LIBS := -lm
LFLAGS := $(LFLAGS) -Wl,--export-dynamic -rdynamic
ESUFFIX :=
LSUFFIX := .so
endif
@ -56,6 +60,7 @@ ifeq "$(PLATFORM)" "Windows"
MD := md
RM := del /F
LIBS := -ldl -lm
LFLAGS := $(LFLAGS) -Wl,--export-dynamic -rdynamic
ESUFFIX := .exe
LSUFFIX := .dll
endif


Loading…
Cancel
Save