Some build fixes for FreeBSD.
* Drop endian.h; no longer needed as FreeBSD provides its own (and this conflicts with some other things later in the build.) * Needs libgnuregex; enable and adjust paths. Doesn't fully work yet. The fixes in the next commit for fat_shell plus some other build system tweaks are still needed.
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
#ifndef _HAIKU_BUILD_COMPATIBILITY_FREEBSD_ENDIAN
|
||||
#define _HAIKU_BUILD_COMPATIBILITY_FREEBSD_ENDIAN
|
||||
|
||||
|
||||
// There's no <endian.h> in FreeBSD, but <sys/endian.h>. And the macro naming
|
||||
// differs.
|
||||
|
||||
#include <sys/endian.h>
|
||||
|
||||
|
||||
#define __LITTLE_ENDIAN _LITTLE_ENDIAN
|
||||
#define __BIG_ENDIAN _BIG_ENDIAN
|
||||
#define __PDP_ENDIAN _PDP_ENDIAN
|
||||
#define BYTE_ORDER _BYTE_ORDER
|
||||
|
||||
#endif // _HAIKU_BUILD_COMPATIBILITY_FREEBSD_ENDIAN
|
||||
+1
-1
@@ -8,6 +8,6 @@ SubInclude HAIKU_TOP src build libshared ;
|
||||
SubInclude HAIKU_TOP src build libsolv ;
|
||||
SubInclude HAIKU_TOP src build libuuid ;
|
||||
|
||||
if $(HOST_PLATFORM) = darwin {
|
||||
if $(HOST_PLATFORM) = darwin || $(HOST_PLATFORM) = freebsd {
|
||||
SubInclude HAIKU_TOP src build libgnuregex ;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
SubDir HAIKU_TOP src build libgnuregex ;
|
||||
|
||||
MakeLocate libgnuregex_build.so : $(HOST_BUILD_COMPATIBILITY_LIB_DIR) ;
|
||||
|
||||
BuildPlatformSharedLibrary libgnuregex_build.so :
|
||||
regex.c
|
||||
printchar.c
|
||||
|
||||
@@ -6,25 +6,16 @@ SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin keymap ] ;
|
||||
|
||||
USES_BE_API on <build>keymap = true ;
|
||||
|
||||
local regexSources ;
|
||||
local regexLib ;
|
||||
|
||||
if $(HOST_PLATFORM) = freebsd {
|
||||
# FreeBSD isolates the GNU regex functions into their own library.
|
||||
regexLib = gnuregex ;
|
||||
} else if $(HOST_PLATFORM) = darwin {
|
||||
# Darwin does not have them at all, so we use the bundled version.
|
||||
if $(HOST_PLATFORM) = darwin || $(HOST_PLATFORM) = freebsd {
|
||||
UseHeaders [ FDirName $(HAIKU_TOP) src build libgnuregex ] : true ;
|
||||
regexLib = libgnuregex_build.so ;
|
||||
}
|
||||
|
||||
BuildPlatformMain <build>keymap :
|
||||
main.cpp
|
||||
Keymap.cpp
|
||||
$(regexSources)
|
||||
: libshared_build.a $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(regexLib)
|
||||
;
|
||||
|
||||
LinkAgainst <build>keymap : $(HOST_LIBBE) ;
|
||||
|
||||
SEARCH on [ FGristFiles $(regexSources) ]
|
||||
= [ FDirName $(HAIKU_TOP) src system libroot posix glibc regex ] ;
|
||||
|
||||
Reference in New Issue
Block a user