mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
Do not use fPIC when cyclone compiles programs
This commit is contained in:
parent
abfbb0c747
commit
2663945d4c
1 changed files with 5 additions and 1 deletions
|
@ -24,10 +24,14 @@ endif
|
|||
# Compiler options
|
||||
CFLAGS ?= $(CYC_PROFILING) $(CYC_GCC_OPT_FLAGS) -fPIC -Wall -Iinclude
|
||||
BASE_CFLAGS ?= $(CYC_PROFILING) $(CYC_GCC_OPT_FLAGS) -fPIC -Wall -I$(PREFIX)/include
|
||||
# Used by Cyclone to compile programs, no need for PIC there
|
||||
BASE_PROG_CFLAGS ?= $(CYC_PROFILING) $(CYC_GCC_OPT_FLAGS) -Wall -I$(PREFIX)/include
|
||||
ifeq ($(OS),Darwin)
|
||||
COMP_CFLAGS ?= $(BASE_CFLAGS)
|
||||
COMP_PROG_CFLAGS ?= $(BASE_PROG_CFLAGS)
|
||||
else
|
||||
COMP_CFLAGS ?= $(BASE_CFLAGS) -L$(PREFIX)/lib
|
||||
COMP_PROG_CFLAGS ?= $(BASE_PROG_CFLAGS) -L$(PREFIX)/lib
|
||||
endif
|
||||
|
||||
# Use these lines instead for debugging or profiling
|
||||
|
@ -58,7 +62,7 @@ endif
|
|||
|
||||
|
||||
# Commands "baked into" cyclone for invoking the C compiler
|
||||
CC_PROG ?= "$(CC) ~src-file~ $(COMP_CFLAGS) -c -o ~exec-file~.o"
|
||||
CC_PROG ?= "$(CC) ~src-file~ $(COMP_PROG_CFLAGS) -c -o ~exec-file~.o"
|
||||
CC_EXEC ?= "$(CC) ~exec-file~.o ~obj-files~ $(LIBS) $(COMP_CFLAGS) -o ~exec-file~"
|
||||
CC_LIB ?= "$(CC) ~src-file~ $(COMP_CFLAGS) -c -o ~exec-file~.o"
|
||||
CC_SO ?= "$(CC) -shared $(LDFLAGS) -o ~exec-file~.so ~exec-file~.o"
|
||||
|
|
Loading…
Add table
Reference in a new issue