Makefile: Added FreeBSD support.
FreeBSD uses libltdl instead of libdl. Thanks xreprimand for the info.
This commit is contained in:
parent
d23b8e0c7c
commit
add99a8847
19
GNUmakefile
19
GNUmakefile
|
@ -37,8 +37,6 @@ all: MCServer/MCServer
|
||||||
# -- according to http://stackoverflow.com/questions/6183899/undefined-reference-to-dlopen, libs must come after all sources
|
# -- according to http://stackoverflow.com/questions/6183899/undefined-reference-to-dlopen, libs must come after all sources
|
||||||
# BUILDDIR ... folder where the intermediate object files are built
|
# BUILDDIR ... folder where the intermediate object files are built
|
||||||
|
|
||||||
LNK_LIBS = -lstdc++ -ldl
|
|
||||||
|
|
||||||
ifeq ($(release),1)
|
ifeq ($(release),1)
|
||||||
################
|
################
|
||||||
# release build - fastest run-time, no gdb support
|
# release build - fastest run-time, no gdb support
|
||||||
|
@ -83,6 +81,23 @@ endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
###################################################
|
||||||
|
# Set the link libraries based on the OS
|
||||||
|
# Linux uses libdl
|
||||||
|
# FreeBSD uses libltdl
|
||||||
|
# TODO: other OSs?
|
||||||
|
|
||||||
|
UNAME := $(shell uname -s)
|
||||||
|
ifeq ($(UNAME),Linux)
|
||||||
|
LNK_LIBS = -lstdc++ -ldl
|
||||||
|
else
|
||||||
|
LNK_LIBS = -lstdc++ -lltdl
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# 32-bit build override in 64-bit build environments
|
# 32-bit build override in 64-bit build environments
|
||||||
# - so that BearBin doesn't need to modify his makefile after each makefile change :)
|
# - so that BearBin doesn't need to modify his makefile after each makefile change :)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user