attempt to detect Linux and add -ldl to linker automatically
FossilOrigin-Name: defb131a9d675f2c54714c38f38096d4a01e09c6211c2bd9767e25a230b420a4
This commit is contained in:
parent
8a7f5ab735
commit
5fcf120526
2 changed files with 7 additions and 2 deletions
|
@ -6,8 +6,13 @@ DOCSDIR ?= $(PREFIX)/share/doc/RETRO12
|
|||
EXAMPLESDIR ?= $(PREFIX)/share/examples/RETRO12
|
||||
MANDIR ?= $(PREFIX)/share/man/man1
|
||||
LIBM ?= -lm
|
||||
|
||||
LIBDL ?=
|
||||
# LIBDL += -ldl
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
LIBDL += -ldl
|
||||
endif
|
||||
|
||||
CFLAGS ?= -O2
|
||||
|
||||
ENABLED ?=
|
||||
|
|
2
Makefile
2
Makefile
|
@ -16,7 +16,7 @@ ENABLED += -DENABLE_CLOCK
|
|||
ENABLED += -DENABLE_SCRIPTING
|
||||
# ENABLED += -DENABLE_SOCKETS
|
||||
ENABLED += -DENABLE_SIGNALS
|
||||
# ENABLED += -DENABLE_MULTICORE
|
||||
ENABLED += -DENABLE_MULTICORE
|
||||
ENABLED += -DENABLE_FFI
|
||||
|
||||
DEVICES ?=
|
||||
|
|
Loading…
Reference in a new issue