mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 04:23:41 +01:00
Merge pull request #217 from epsilon-0/master
don't alter toolchain vars if already provided
This commit is contained in:
commit
3cb804556f
1 changed files with 16 additions and 16 deletions
32
Make.inc
32
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
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue