add OR_TOOLS_VERSION and use it in mac dylibs
This commit is contained in:
2
Makefile
2
Makefile
@@ -10,6 +10,8 @@ help:
|
||||
@echo " - tests: test test_cc test_python test_java test_csharp"
|
||||
@echo " - cleaning: clean cleancsharp"
|
||||
|
||||
OR_TOOLS_VERSION = 1.0.0
|
||||
|
||||
.PHONY : python cc java
|
||||
cc: cplibs cpexe algorithmslibs graphlibs lplibs lpexe
|
||||
java: javacp javaalgorithms javagraph javalp
|
||||
|
||||
@@ -103,7 +103,7 @@ PRE_LIB = -Wl,-rpath $(TOP) -L$(TOP) -l
|
||||
POST_LIB =
|
||||
endif # LINUX
|
||||
ifeq ($(PLATFORM),MACOSX)
|
||||
LD = ld -arch x86_64 -bundle -flat_namespace -undefined suppress -macosx_version_min 10.6
|
||||
LD = ld -arch x86_64 -bundle -flat_namespace -undefined suppress -macosx_version_min 10.6 -lSystem -compatibility_version 1.0 -current_version $(OR_TOOLS_VERSION)
|
||||
JNILIBEXT = jnilib
|
||||
|
||||
GFLAGS_LNK = -L$(UNIX_GFLAGS_DIR)/lib -lgflags
|
||||
@@ -120,7 +120,7 @@ JAR_BIN = jar
|
||||
PRE_LIB = -L$(TOP) -l
|
||||
POST_LIB =
|
||||
LIBSUFFIX = dylib
|
||||
LINKCMD = ld -arch x86_64 -dylib -flat_namespace -undefined suppress -macosx_version_min 10.6
|
||||
LINKCMD = ld -arch x86_64 -dylib -flat_namespace -undefined suppress -macosx_version_min 10.6 -lSystem -compatibility_version 1.0 -current_version $(OR_TOOLS_VERSION)
|
||||
LINKPREFIX = -o # Need the space.
|
||||
|
||||
ifdef UNIX_GLPK_DIR
|
||||
|
||||
Reference in New Issue
Block a user