mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
defs.mk: Make it compile on SuSE 10.3 @ x86_64
This commit is contained in:
parent
00dfb8f0eb
commit
ecb6741bc2
1 changed files with 11 additions and 8 deletions
19
make/defs.mk
19
make/defs.mk
|
|
@ -69,7 +69,11 @@ IMAGE_DIR ?= $(CVS_ROOT_DIR)/images
|
|||
USE_GFILTER ?= true
|
||||
TARGET ?= Linux
|
||||
OS ?= $(shell sh $(MOD_SCRIPT_DIR)/get_os.sh)
|
||||
ARCH = @ARCH@
|
||||
ifeq ($(shell uname -m),x86_64)
|
||||
ARCH = x86_64
|
||||
else
|
||||
ARCH = x86
|
||||
endif
|
||||
FULL_NAME = $(shell grep "^`id -nu`": /etc/passwd | cut -d: -f5)
|
||||
DEVELOPMENT ?= $(shell echo $(VERSION) | grep -q 'dev' && echo true)
|
||||
USE_PROJECT_LIB ?= true
|
||||
|
|
@ -357,6 +361,12 @@ endif
|
|||
|
||||
LPPFLAGS += -lstdc++
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
CFLAGS += -fPIC
|
||||
CPPFLAGS += -fPIC
|
||||
LIBFLAGS +=
|
||||
endif
|
||||
|
||||
ifeq ($(GCC_MAJOR),2)
|
||||
LPPFLAGS += -lm
|
||||
CFLAGS += -I/usr/local/include
|
||||
|
|
@ -367,13 +377,6 @@ else
|
|||
LPPFLAGS += -lgcc_s
|
||||
# LPPFLAGS += -L/usr/local/gcc3.3/lib
|
||||
endif
|
||||
else
|
||||
ifeq ($(GCC_MAJOR),4) # -PIC is more a thing with AMD64, I think
|
||||
ifeq ($(TARGET),Linux)
|
||||
CPPFLAGS += -fPIC
|
||||
CFLAGS += -fPIC
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue