bicatali 14/04/02 22:56:28 Added: openlibm-respect-toolchain.patch Log: Initial import to the main tree, version bump (Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Revision Changes Path 1.1 sci-libs/openlibm/files/openlibm-respect-toolchain.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openlibm/files/openlibm-respect-toolchain.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/openlibm/files/openlibm-respect-toolchain.patch?rev=1.1&content-type=text/plain Index: openlibm-respect-toolchain.patch =================================================================== --- Make.inc.orig 2014-03-31 12:12:44.564468385 -0700 +++ Make.inc 2014-03-31 12:13:17.094660733 -0700 @@ -8,27 +8,18 @@ libdir = $(prefix)/lib includedir = $(prefix)/include -FC = gfortran -FFLAGS += -O3 +FC ?= gfortran -USEGCC = 1 -USECLANG = 0 -ifeq ($(OS), Darwin) -USEGCC = 0 -USECLANG = 1 -endif - -AR = ar +AR ?= ar +CC ?= gcc -ifeq ($(USECLANG),1) +ifneq (,$(findstring clang,$(CC))) USEGCC = 0 -CC = clang CFLAGS_add += -fno-builtin endif -ifeq ($(USEGCC),1) -CC = gcc +ifneq (,$(findstring gcc,$(CC))) CFLAGS_add += -fno-gnu89-inline endif @@ -37,7 +28,7 @@ $(error "the mingw32 compiler you are using fails the openblas testsuite. please see the Julia README.windows.md document for a replacement") endif -CFLAGS_add += -std=c99 -Wall -O3 -I$(OPENLIBM_HOME) -I$(OPENLIBM_HOME)/include -I$(OPENLIBM_HOME)/ld80 -I$(OPENLIBM_HOME)/$(ARCH) -I$(OPENLIBM_HOME)/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration +CFLAGS_add += -std=c99 -Wall -I$(OPENLIBM_HOME) -I$(OPENLIBM_HOME)/include -I$(OPENLIBM_HOME)/ld80 -I$(OPENLIBM_HOME)/$(ARCH) -I$(OPENLIBM_HOME)/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration default: all