diff options
Diffstat (limited to 'sci-libs/openlibm/files/openlibm-0.7.2-make_inc.patch')
-rw-r--r-- | sci-libs/openlibm/files/openlibm-0.7.2-make_inc.patch | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/sci-libs/openlibm/files/openlibm-0.7.2-make_inc.patch b/sci-libs/openlibm/files/openlibm-0.7.2-make_inc.patch new file mode 100644 index 000000000000..dc42a98c68d5 --- /dev/null +++ b/sci-libs/openlibm/files/openlibm-0.7.2-make_inc.patch @@ -0,0 +1,81 @@ +diff --git a/Make.inc b/Make.inc +index adeb33d..36520f0 100644 +--- a/Make.inc ++++ b/Make.inc +@@ -10,41 +10,41 @@ VERSION = 0.7.0 + SOMAJOR = 3 + SOMINOR = 0 + DESTDIR = +-prefix = /usr/local +-bindir = $(prefix)/bin +-libdir = $(prefix)/lib +-includedir = $(prefix)/include ++prefix ?= /usr/local ++bindir ?= $(prefix)/bin ++libdir ?= $(prefix)/lib ++includedir ?= $(prefix)/include + + ifeq ($(OS), FreeBSD) +-pkgconfigdir = $(prefix)/libdata/pkgconfig ++pkgconfigdir ?= $(prefix)/libdata/pkgconfig + else +-pkgconfigdir = $(libdir)/pkgconfig ++pkgconfigdir ?= $(libdir)/pkgconfig + endif + +-USEGCC = 1 +-USECLANG = 0 ++USEGCC ?= 1 ++USECLANG ?= 0 + + ifneq (,$(findstring $(OS),Darwin FreeBSD OpenBSD)) +-USEGCC = 0 +-USECLANG = 1 ++USEGCC ?= 0 ++USECLANG ?= 1 + endif + + AR = $(TOOLPREFIX)ar + + ifeq ($(ARCH),wasm32) +-CC = clang-8 +-USEGCC = 0 ++CC ?= clang-8 ++USEGCC ?= 0 + CFLAGS_add += -fno-builtin -fno-strict-aliasing + endif + + ifeq ($(USECLANG),1) +-USEGCC = 0 +-CC = clang ++USEGCC ?= 0 ++CC ?= clang + CFLAGS_add += -fno-builtin -fno-strict-aliasing + endif + + ifeq ($(USEGCC),1) +-CC = $(TOOLPREFIX)gcc ++CC ?= $(TOOLPREFIX)gcc + CFLAGS_add += -fno-gnu89-inline -fno-builtin + endif + +@@ -84,9 +84,6 @@ override ARCH := mips + endif + + # If CFLAGS does not contain a -O optimization flag, default to -O3 +-ifeq ($(findstring -O,$(CFLAGS)),) +-CFLAGS_add += -O3 +-endif + + ifneq (,$(findstring MINGW,$(OS))) + override OS=WINNT +@@ -111,9 +111,6 @@ shlibdir = $(libdir) + endif + + # Add `-march` to our CFLAGS if it's defined +-ifneq ($(MARCH),) +-CFLAGS_arch += -march=$(MARCH) +-endif + + ifeq ($(ARCH),i387) + CFLAGS_arch += -m32 |