diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-01-02 22:39:56 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-01-02 22:49:55 +1100 |
commit | 33fa7dc6436b439c7160ce77b4f652084779c116 (patch) | |
tree | ef5131982d07218a5b2fa231f97aa50c337ea74a | |
parent | 85d5c53803e455c0a235313918624d549bc10b2d (diff) | |
download | flac-33fa7dc6436b439c7160ce77b4f652084779c116.tar.gz |
Minor Linux fixes for Makefile.lite build method.
-rw-r--r-- | build/config.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/config.mk b/build/config.mk index 76cdc514..5dd72bbe 100644 --- a/build/config.mk +++ b/build/config.mk @@ -55,6 +55,11 @@ ifeq ($(PROC),powerpc) PROC := ppc endif +ifeq ($(OS),Linux) + PROC := $(shell uname -m) + USE_ICONV := 0 +endif + debug : BUILD = debug valgrind : BUILD = debug release : BUILD = release @@ -90,6 +95,12 @@ else CONFIG_CFLAGS += -DWORDS_BIGENDIAN=0 endif +ifeq ($(OS),Linux) + ifeq ($(PROC),x86_64) + CONFIG_CFLAGS += -fPIC + endif +endif + ifneq (0,$(USE_ICONV)) CONFIG_CFLAGS += -DHAVE_ICONV ICONV_LIBS = -liconv |