fix php4 compile on arm, add fpic while we're at it
[openwrt/svn-archive/archive.git] / lang / php4 / Makefile
index a2a99c8..5c8bab0 100644 (file)
@@ -250,6 +250,8 @@ endif
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(if $(CONFIG_BIG_ENDIAN),-DIEEE_BIG_ENDIAN,-DIEEE_LITTLE_ENDIAN) $(FPIC)
+
 ifneq ($(CONFIG_PACKAGE_php4-cli),)
   define Build/Compile/php4-cli
        -$(MAKE) -C $(PKG_BUILD_DIR) clean