libpackage_build: Fix build on FreeBSD.

FreeBSD's gcc doesn't include /usr/local/{include,lib} in its default
search paths, but libcurl gets installed there.
This commit is contained in:
Rene Gollent
2013-09-29 17:51:23 -04:00
parent 5ef03b1bda
commit 4a3649a4ac
+7
View File
@@ -87,6 +87,13 @@ if $(HOST_PLATFORM) = haiku_host && $(HOST_GCC_VERSION[1]) < 3 {
SourceHdrs FetchFileJob.cpp : /boot/$(locations)/develop/headers/curl ;
}
# FreeBSD's gcc doesn't have /usr/local/include and /usr/local/lib in its
# default search paths, but that's where its libcurl port gets installed to.
if $(HOST_PLATFORM) = freebsd {
SourceHdrs FetchFileJob.cpp : /usr/local/include ;
LINKFLAGS on libpackage_build.so += -L/usr/local/lib ;
}
# locate the library
MakeLocate libpackage_build.so : $(HOST_BUILD_COMPATIBILITY_LIB_DIR) ;