projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85d5c53
)
Minor Linux fixes for Makefile.lite build method.
author
Erik de Castro Lopo
<erikd@mega-nerd.com>
Wed, 2 Jan 2013 11:39:56 +0000
(22:39 +1100)
committer
Erik de Castro Lopo
<erikd@mega-nerd.com>
Wed, 2 Jan 2013 11:49:55 +0000
(22:49 +1100)
build/config.mk
patch
|
blob
|
history
diff --git
a/build/config.mk
b/build/config.mk
index
76cdc51
..
5dd72bb
100644
(file)
--- 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