summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-11-23 16:22:36 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2009-11-23 16:22:36 +0100
commit3d82609bd11b9b3c9949ef4c9d078df1ccdd39d0 (patch)
treeca7e7f047cf864b9a4634e3724bcb58fc5fba76a /package
parent08703917d79ddcff3763170b95cbf3ad52540583 (diff)
downloadbuildroot-novena-3d82609bd11b9b3c9949ef4c9d078df1ccdd39d0.tar.gz
buildroot-novena-3d82609bd11b9b3c9949ef4c9d078df1ccdd39d0.zip
rpm: fix build with BR2_CONFIG_CACHE, fix CFLAGS
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/rpm/rpm.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/rpm/rpm.mk b/package/rpm/rpm.mk
index e769a050f..d3da779de 100644
--- a/package/rpm/rpm.mk
+++ b/package/rpm/rpm.mk
@@ -10,8 +10,10 @@ RPM_LIBTOOL_PATCH = NO
RPM_DEPENDENCIES = zlib bzip2 beecrypt neon popt
-RPM_CONF_ENV = CFLAGS="-I$(STAGING_DIR)/usr/include/beecrypt -I$(STAGING_DIR)/usr/include/neon" \
+RPM_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/beecrypt -I$(STAGING_DIR)/usr/include/neon" \
ac_cv_va_copy=yes
+# the above doesn't work with shared config.cache
+RPM_USE_CONFIG_CACHE = NO
RPM_CONF_OPT = --disable-build-versionscript --disable-rpath \
--without-selinux \
@@ -22,7 +24,7 @@ RPM_CONF_OPT = --disable-build-versionscript --disable-rpath \
--with-mutex=UNIX/fcntl \
--with-bzip2
-RPM_MAKE_OPT = -j1
+RPM_MAKE = $(MAKE1)
RPM_INSTALL_TARGET_OPT=DESTDIR=$(TARGET_DIR) program_transform_name= install