makefile - added OSX build support for VDE2 when the MacPorts vde2 package is installed
This commit is contained in:
parent
f2fdee9a8e
commit
1d0c0fc07d
1 changed files with 8 additions and 0 deletions
8
makefile
8
makefile
|
@ -98,6 +98,14 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
||||||
ifeq (Darwin,$(OSTYPE))
|
ifeq (Darwin,$(OSTYPE))
|
||||||
OSNAME = OSX
|
OSNAME = OSX
|
||||||
LIBEXT = dylib
|
LIBEXT = dylib
|
||||||
|
ifeq (incopt,$(shell if $(TEST) -d /opt/local/include; then echo incopt; fi))
|
||||||
|
INCPATH += /opt/local/include
|
||||||
|
OS_CCDEFS += -I/opt/local/include
|
||||||
|
endif
|
||||||
|
ifeq (libopt,$(shell if $(TEST) -d /opt/local/lib; then echo libopt; fi))
|
||||||
|
LIBPATH += /opt/local/lib
|
||||||
|
OS_LDFLAGS += -L/opt/local/lib
|
||||||
|
endif
|
||||||
# OSX's XCode gcc doesn't support LTO, but gcc built to explicitly enable it will work
|
# OSX's XCode gcc doesn't support LTO, but gcc built to explicitly enable it will work
|
||||||
ifneq (,$(GCC_VERSION))
|
ifneq (,$(GCC_VERSION))
|
||||||
ifeq (,$(shell $(GCC) -v /dev/null 2>&1 | grep '\-\-enable-lto'))
|
ifeq (,$(shell $(GCC) -v /dev/null 2>&1 | grep '\-\-enable-lto'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue