fix php4 compile on arm, add fpic while we're at it
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12265 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c02632b049
commit
52148b30d6
@ -250,6 +250,8 @@ endif
|
|||||||
define Build/Configure
|
define Build/Configure
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
TARGET_CFLAGS += $(if $(CONFIG_BIG_ENDIAN),-DIEEE_BIG_ENDIAN,-DIEEE_LITTLE_ENDIAN) $(FPIC)
|
||||||
|
|
||||||
ifneq ($(CONFIG_PACKAGE_php4-cli),)
|
ifneq ($(CONFIG_PACKAGE_php4-cli),)
|
||||||
define Build/Compile/php4-cli
|
define Build/Compile/php4-cli
|
||||||
-$(MAKE) -C $(PKG_BUILD_DIR) clean
|
-$(MAKE) -C $(PKG_BUILD_DIR) clean
|
||||||
|
18
lang/php4/patches/100-compile_fix.patch
Normal file
18
lang/php4/patches/100-compile_fix.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
--- a/Zend/zend_strtod.c
|
||||||
|
+++ b/Zend/zend_strtod.c
|
||||||
|
@@ -117,6 +117,7 @@
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#if !defined(IEEE_BIG_ENDIAN) && !defined(IEEE_LITTLE_ENDIAN)
|
||||||
|
#ifdef WORDS_BIGENDIAN
|
||||||
|
#define IEEE_BIG_ENDIAN
|
||||||
|
#else
|
||||||
|
@@ -141,6 +142,7 @@
|
||||||
|
#define uint32_t unsigned __int32
|
||||||
|
#define IEEE_LITTLE_ENDIAN
|
||||||
|
#endif
|
||||||
|
+#endif /* !defined(IEEE_BIG_ENDIAN) && !defined(IEEE_LITTLE_ENDIAN) */
|
||||||
|
|
||||||
|
#define Long int32_t
|
||||||
|
#define ULong uint32_t
|
Loading…
x
Reference in New Issue
Block a user