The platform dependent header dir is explicitly included now. Changed the libgcc.a handling a bit. Re-run configure!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3178 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -191,6 +191,9 @@ rule SetupIncludes
|
|||||||
|
|
||||||
# Used as a fallback, the R5 header directories (we should remove this as soon as possible)
|
# Used as a fallback, the R5 header directories (we should remove this as soon as possible)
|
||||||
HDRS += /boot/develop/headers/posix /boot/develop/headers/cpp ;
|
HDRS += /boot/develop/headers/posix /boot/develop/headers/cpp ;
|
||||||
|
|
||||||
|
# The platform dependent headers.
|
||||||
|
HDRS += $(PLATFORM_HEADERS) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
rule SetupR5Includes
|
rule SetupR5Includes
|
||||||
@@ -1373,6 +1376,8 @@ rule SetupKernel
|
|||||||
HDRS += [ PublicHeaders $(public_kernel_includes) ] ;
|
HDRS += [ PublicHeaders $(public_kernel_includes) ] ;
|
||||||
# Use private directories
|
# Use private directories
|
||||||
HDRS += [ PrivateHeaders $(private_kernel_includes) ] ;
|
HDRS += [ PrivateHeaders $(private_kernel_includes) ] ;
|
||||||
|
# The platform dependent headers.
|
||||||
|
HDRS += $(PLATFORM_HEADERS) ;
|
||||||
|
|
||||||
UseArchHeaders $(OBOS_ARCH) ;
|
UseArchHeaders $(OBOS_ARCH) ;
|
||||||
|
|
||||||
@@ -1415,9 +1420,9 @@ rule KernelLd
|
|||||||
|
|
||||||
MakeLocate $(1) : $(LOCATE_TARGET) ;
|
MakeLocate $(1) : $(LOCATE_TARGET) ;
|
||||||
|
|
||||||
# Add libgcc.a - NB this should be detected not hard coded!
|
# Add the platform specific static libs (libgcc.a).
|
||||||
if ! $(5) {
|
if ! $(5) {
|
||||||
LINKLIBS on $(1) += -L $(GCC_PATH) -lgcc ;
|
LINKLIBS on $(1) += $(PLATFORM_LINKLIBS) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,23 @@ assertparam()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# standard_gcc_settings
|
||||||
|
#
|
||||||
|
# Sets the variables for a GCC platform.
|
||||||
|
#
|
||||||
|
standard_gcc_settings()
|
||||||
|
{
|
||||||
|
# PLATFORM_LINKLIBS
|
||||||
|
gcclib=`gcc -print-libgcc-file-name`
|
||||||
|
gccdir=`dirname ${gcclib}`
|
||||||
|
if [ "x${PLATFORM_LINKLIBS}" == "x" ] ; then
|
||||||
|
PLATFORM_LINKLIBS="-L ${gccdir} -lgcc"
|
||||||
|
fi
|
||||||
|
if [ "x${PLATFORM_HEADERS}" == "x" ] ; then
|
||||||
|
PLATFORM_HEADERS="${gccdir}/include"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# default parameter values
|
# default parameter values
|
||||||
#
|
#
|
||||||
platform=`uname`
|
platform=`uname`
|
||||||
@@ -62,19 +79,11 @@ fi
|
|||||||
|
|
||||||
# BeOS
|
# BeOS
|
||||||
if [ "${platform}" == "BeOS" ] ; then
|
if [ "${platform}" == "BeOS" ] ; then
|
||||||
# GGC_PATH
|
standard_gcc_settings
|
||||||
if [ "x${GCC_PATH}" == "x" ] ; then
|
|
||||||
gcclib=`gcc -print-libgcc-file-name`
|
|
||||||
GCC_PATH=`dirname ${gcclib}`
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Linux
|
# Linux
|
||||||
else if [ "${platform}" == "Linux" ] ; then
|
else if [ "${platform}" == "Linux" ] ; then
|
||||||
# GGC_PATH
|
standard_gcc_settings
|
||||||
if [ "x${GCC_PATH}" == "x" ] ; then
|
|
||||||
gcclib=`gcc -print-libgcc-file-name`
|
|
||||||
GCC_PATH=`dirname ${gcclib}`
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Unknown platform
|
# Unknown platform
|
||||||
else
|
else
|
||||||
@@ -87,8 +96,9 @@ cat << EOF > build/BuildConfig
|
|||||||
# BuildConfig
|
# BuildConfig
|
||||||
# Note: This file has been automatically generated by configure.
|
# Note: This file has been automatically generated by configure.
|
||||||
|
|
||||||
FLOPPY_PATH ?= "$floppy" ;
|
FLOPPY_PATH ?= "${floppy}" ;
|
||||||
GCC_PATH ?= ${GCC_PATH} ;
|
PLATFORM_LINKLIBS ?= ${PLATFORM_LINKLIBS} ;
|
||||||
BOCHS_DEBUG_HACK ?= $bochs_debug ;
|
PLATFORM_HEADERS ?= ${PLATFORM_HEADERS} ;
|
||||||
|
BOCHS_DEBUG_HACK ?= ${bochs_debug} ;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user