]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
php: remove -march from CFLAGS on arm build.
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 28 Aug 2012 12:26:27 +0000 (08:26 -0400)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 28 Aug 2012 12:26:27 +0000 (08:26 -0400)
lfs/php

diff --git a/lfs/php b/lfs/php
index f068035e7fab1a5a69c5277eef7170756a77a661..c5aae146b7a5bdf8ecc0bbb3ed000f6bbba9bd3f 100644 (file)
--- a/lfs/php
+++ b/lfs/php
@@ -32,6 +32,10 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
+ifeq "$(MACHINE_TYPE)" "arm"
+       CFLAGS    := $(patsubst -march=%,,$(CFLAGS))
+endif
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################