Skip to content

Commit

Permalink
Don't pass -fPIC on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Feb 2, 2022
1 parent 72e1f7d commit 81b8d37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ ifeq ($(OS), WINNT)
LIB_MAJOR_VERSION := libblastrampoline-$(LBT_SOVERSION_MAJOR).dll
SONAME_FLAG :=
else ifeq ($(OS), Darwin)
FPIC := -fPIC
SHLIB_EXT := dylib
binlib := lib

LIB_FULL_VERSION := libblastrampoline.$(LBT_SOVERSION_MAJOR).$(LBT_SOVERSION_MINOR).$(LBT_SOVERSION_PATCH).dylib
LIB_MAJOR_VERSION := libblastrampoline.$(LBT_SOVERSION_MAJOR).dylib
SONAME_FLAG := -install_name @rpath/$(LIB_MAJOR_VERSION)
else
FPIC := -fPIC
SHLIB_EXT := so
binlib := lib

Expand All @@ -50,7 +52,7 @@ else
SONAME_FLAG := -Wl,-soname=$(LIB_MAJOR_VERSION)
endif

LBT_CFLAGS := -g -O2 -Werror -std=c99 -fPIC -DLIBRARY_EXPORTS -D_GNU_SOURCE $(CFLAGS)
LBT_CFLAGS := -g -O2 -Werror -std=c99 $(FPIC) -DLIBRARY_EXPORTS -D_GNU_SOURCE $(CFLAGS)
LBT_LDFLAGS := $(LDFLAGS)

ifeq ($(OS),Linux)
Expand Down

0 comments on commit 81b8d37

Please sign in to comment.