File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,15 @@ ifeq ($(OS), WINNT)
3535 LIB_MAJOR_VERSION := libblastrampoline-$(LBT_SOVERSION_MAJOR ) .dll
3636 SONAME_FLAG :=
3737else ifeq ($(OS), Darwin)
38+ FPIC := -fPIC
3839 SHLIB_EXT := dylib
3940 binlib := lib
4041
4142 LIB_FULL_VERSION := libblastrampoline.$(LBT_SOVERSION_MAJOR ) .$(LBT_SOVERSION_MINOR ) .$(LBT_SOVERSION_PATCH ) .dylib
4243 LIB_MAJOR_VERSION := libblastrampoline.$(LBT_SOVERSION_MAJOR ) .dylib
4344 SONAME_FLAG := -install_name @rpath/$(LIB_MAJOR_VERSION )
4445else
46+ FPIC := -fPIC
4547 SHLIB_EXT := so
4648 binlib := lib
4749
5052 SONAME_FLAG := -Wl,-soname=$(LIB_MAJOR_VERSION )
5153endif
5254
53- LBT_CFLAGS := -g -O2 -Werror -std=c99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE $(CFLAGS )
55+ LBT_CFLAGS := -g -O2 -Werror -std=c99 $( FPIC ) -DLIBRARY_EXPORTS -D_GNU_SOURCE $(CFLAGS )
5456LBT_LDFLAGS := $(LDFLAGS )
5557
5658ifeq ($(OS ) ,Linux)
You can’t perform that action at this time.
0 commit comments