TITLE:=Implements functions missing from uClibc
endef
+ifeq ($(ARCH),x86_64)
+ FPIC:=-fPIC
+endif
+
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
define Build/Prepare
URL:=http://openh323.sourceforge.net/
endef
+ifeq ($(ARCH),x86_64)
+ FPIC:=-fPIC
+endif
+
CONFIGURE_ARGS += \
--enable-minsize \
--enable-audio \
CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
MAKE_FLAGS += \
- CFLAGS="$(TARGET_CFLAGS)" \
- CCFLAGS="$(TARGET_CFLAGS)" \
+ CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
+ CCFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
optnoshared
define Build/InstallDev
System.
endef
+ifeq ($(ARCH),x86_64)
+ FPIC:=-fPIC
+endif
+
CONFIGURE_ARGS += \
--enable-minsize \
--enable-openh323 \
--disable-xmlrpc \
CONFIGURE_VARS += \
- CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
+ STDCXXFLAGS="$(TARGET_CFLAGS) $(FPIC) -fno-builtin" \
MAKE_FLAGS += optnoshared