Bug 356011 - "kfreebsd support" (main configure.in and xpcom parts) [p=mh+mozilla@glandium.org (Mike Hommey) r=bsmedberg a1.9=damons]

This commit is contained in:
reed@reedloden.com 2008-03-12 03:59:03 -07:00
Родитель b21f328c49
Коммит 26adff9497
3 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -948,6 +948,7 @@ if test -n "$CROSS_COMPILE"; then
OS_RELEASE=
case "${target_os}" in
linux*) OS_ARCH=Linux OS_TARGET=Linux ;;
kfreebsd*-gnu) OS_ARCH=GNU_kFreeBSD OS_TARGET=GNU_kFreeBSD ;;
solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;;
mingw*) OS_ARCH=WINNT ;;
wince*) OS_ARCH=WINCE ;;
@ -1478,7 +1479,7 @@ case "$host" in
LIBXUL_LIBS='$(XPCOM_FROZEN_LDOPTS) $(LIBXUL_DIST)/bin/XUL -lobjc'
;;
*-linux*)
*-linux*|*-kfreebsd*-gnu)
HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
HOST_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
@ -2470,7 +2471,7 @@ dnl ========================================================
dnl = Flags to strip unused symbols from .so components
dnl ========================================================
case "$target" in
*-linux*)
*-linux*|*-kfreebsd*-gnu)
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
;;
*-solaris*)
@ -3144,7 +3145,7 @@ then
fi
;;
*-*-linux*)
*-*-linux*|*-*-kfreebsd*-gnu)
AC_DEFINE(_REENTRANT)
;;

Просмотреть файл

@ -76,7 +76,7 @@ endif
# New code for Linux, et. al., with gcc
# Migrate other platforms here after testing
#
ifneq (,$(filter Linux,$(OS_ARCH)))
ifneq (,$(filter Linux GNU_%,$(OS_ARCH)))
# Linux/x86-64
ifeq (x86_64,$(OS_TEST))
CPPSRCS := xptcinvoke_x86_64_linux.cpp xptcstubs_x86_64_linux.cpp

Просмотреть файл

@ -67,7 +67,7 @@
*
*/
#if defined(LINUX)
#if defined(LINUX) || (defined(__GLIBC__) && defined(__FreeBSD_kernel__))
#if (__GNUC__ == 2) && (__GNUC_MINOR__ <= 7)
/* Old gcc 2.7.x.x. What does gcc 2.8.x do?? */