Browse Source

LIBS have to be passed per OS

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

+ 5
- 5
Makefile View File

@ -10,9 +10,6 @@ RFLAGS = -O3 -s
# Flags to pass to the linker
LFLAGS = -Wl,--export-dynamic -rdynamic
# Additional libraries necessary for linker
LIBS = -ldl -lm
##############################################
### Do not modify anything below this line ###
##############################################
@ -26,6 +23,7 @@ ifeq "$(PLATFORM)" "Darwin"
CC := clang
MD := mkdir -p
RM := rm -rfv
LIBS := -ldl -lm
ESUFFIX :=
LSUFFIX := .dylib
endif
@ -33,14 +31,15 @@ ifeq "$(PLATFORM)" "FreeBSD"
CC := clang
MD := mkdir -p
RM := rm -rfv
LIBS := -lm
ESUFFIX :=
LSUFFIX := .so
LIBS = -lm
endif
ifeq "$(PLATFORM)" "Linux"
CC := gcc
MD := mkdir -p
RM := rm -rfv
LIBS := -ldl -lm
ESUFFIX :=
LSUFFIX := .so
endif
@ -48,14 +47,15 @@ ifeq "$(PLATFORM)" "OpenBSD"
CC := clang
MD := mkdir -p
RM := rm -rfv
LIBS := -lm
ESUFFIX :=
LSUFFIX := .so
LIBS = -lm
endif
ifeq "$(PLATFORM)" "Windows"
CC := gcc
MD := md
RM := del /F
LIBS := -ldl -lm
ESUFFIX := .exe
LSUFFIX := .dll
endif


Loading…
Cancel
Save