From 5ef03b1bda13fe8e7745649db011f17d55bc8178 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sun, 29 Sep 2013 11:50:40 -0400 Subject: [PATCH] libpackage_build: Fix build on gcc2 haiku. - gcc2 lacks the -iquote option, and side effects of some of the other flags we use with it during the build cause some of libcurl's includes to fail. This temporarily works around the problem until gcc2 can be suitably fixed. --- src/build/libpackage/Jamfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/build/libpackage/Jamfile b/src/build/libpackage/Jamfile index d92f41f0fa..1d35d4cc2e 100644 --- a/src/build/libpackage/Jamfile +++ b/src/build/libpackage/Jamfile @@ -81,6 +81,12 @@ HPKG_SOURCES = ZlibDecompressor.cpp ; +# TODO: remove this hack once gcc2 has -iquote implemented +if $(HOST_PLATFORM) = haiku_host && $(HOST_GCC_VERSION[1]) < 3 { + local locations = common/non-packaged common system ; + SourceHdrs FetchFileJob.cpp : /boot/$(locations)/develop/headers/curl ; +} + # locate the library MakeLocate libpackage_build.so : $(HOST_BUILD_COMPATIBILITY_LIB_DIR) ;