Oses does not all support linker semantics

This commit is contained in:
David Carlier 2018-07-16 16:48:08 +01:00
parent 61afa57339
commit 98cbaa5049
1 changed files with 19 additions and 0 deletions

View File

@ -1,6 +1,25 @@
PLATFORM=$(shell uname | sed -e 's/_.*//' | tr '[:upper:]' '[:lower:]' | sed -e 's/\//_/g')
ifeq ($(PLATFORM),linux)
CFLAGS = -W -Wunused -Wall -I. -Ofast
LDFLAGS = -Wl,--export-dynamic -ldl -rdynamic
CC = gcc
endif
ifeq ($(PLATFORM),darwin)
CFLAGS = -W -Wunused -Wall -I. -Ofast
LDFLAGS = -rdynamic
CC = clang
endif
ifeq ($(PLATFORM),freebsd)
CFLAGS = -W -Wunused -Wall -I. -Ofast
LDFLAGS = -Wl,--export-dynamic -ldl -rdynamic
CC = clang
endif
ifeq ($(PLATFORM),openbsd)
CFLAGS = -W -Wunused -Wall -I. -Ofast
LDFLAGS = -Wl,--export-dynamic -rdynamic
CC = clang
endif
INCLUDES =
ENGINE_OBJS =\