fPIC fixes for 64-bits targets
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12151 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1399ff153b
commit
e8135838c0
@ -21,8 +21,12 @@ define Package/libnotimpl
|
|||||||
TITLE:=Implements functions missing from uClibc
|
TITLE:=Implements functions missing from uClibc
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifeq ($(ARCH),x86_64)
|
||||||
|
FPIC:=-fPIC
|
||||||
|
endif
|
||||||
|
|
||||||
define cc
|
define cc
|
||||||
$(TARGET_CC) $(TARGET_CFLAGS) -Wall -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
|
$(TARGET_CC) $(TARGET_CFLAGS) $(FPIC) -Wall -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Prepare
|
define Build/Prepare
|
||||||
|
@ -27,6 +27,10 @@ define Package/libopenh323
|
|||||||
URL:=http://openh323.sourceforge.net/
|
URL:=http://openh323.sourceforge.net/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifeq ($(ARCH),x86_64)
|
||||||
|
FPIC:=-fPIC
|
||||||
|
endif
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-minsize \
|
--enable-minsize \
|
||||||
--enable-audio \
|
--enable-audio \
|
||||||
@ -36,8 +40,8 @@ CONFIGURE_VARS += \
|
|||||||
CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
|
CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
MAKE_FLAGS += \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
|
||||||
CCFLAGS="$(TARGET_CFLAGS)" \
|
CCFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
|
||||||
optnoshared
|
optnoshared
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
@ -33,6 +33,10 @@ define Package/pwlib/description
|
|||||||
System.
|
System.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifeq ($(ARCH),x86_64)
|
||||||
|
FPIC:=-fPIC
|
||||||
|
endif
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-minsize \
|
--enable-minsize \
|
||||||
--enable-openh323 \
|
--enable-openh323 \
|
||||||
@ -78,7 +82,7 @@ CONFIGURE_ARGS += \
|
|||||||
--disable-xmlrpc \
|
--disable-xmlrpc \
|
||||||
|
|
||||||
CONFIGURE_VARS += \
|
CONFIGURE_VARS += \
|
||||||
CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
|
STDCXXFLAGS="$(TARGET_CFLAGS) $(FPIC) -fno-builtin" \
|
||||||
|
|
||||||
MAKE_FLAGS += optnoshared
|
MAKE_FLAGS += optnoshared
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user