From 9d69de4c3d998cb007760b5907f258447fa22a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 15 Jun 2005 15:02:06 +0000 Subject: [PATCH] inline functions aren't inlined when we have -g / -O0 we filter them for this directory hopefully this fixes Darkwyrm's build problem git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13152 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../libroot/posix/glibc/arch/x86/Jamfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/system/libroot/posix/glibc/arch/x86/Jamfile b/src/system/libroot/posix/glibc/arch/x86/Jamfile index 9d4b8244e7..2c074e8701 100644 --- a/src/system/libroot/posix/glibc/arch/x86/Jamfile +++ b/src/system/libroot/posix/glibc/arch/x86/Jamfile @@ -5,6 +5,17 @@ SubDirHdrs $(OBOS_TOP) src system libroot posix glibc include ; SubDirHdrs $(OBOS_TOP) src system libroot posix glibc stdlib ; SubDirHdrs $(OBOS_TOP) src system libroot posix glibc ; +local originalOPTIM = $(OPTIM) ; +if $(OPTIM) = -O0 { + OPTIM = -O ; +} + +# filter -g we don't want here +local originalCCFlags = $(CCFLAGS) ; +CCFLAGS = [ Filter $(CCFLAGS) : -g ] ; +local originalKERNEL_CCFLAGS = $(KERNEL_CCFLAGS) ; +KERNEL_CCFLAGS = [ Filter $(KERNEL_CCFLAGS) : -g ] ; + KernelMergeObject posix_gnu_arch_$(OBOS_ARCH).o : add_n.S addmul_1.S @@ -25,3 +36,11 @@ KernelMergeObject posix_gnu_arch_$(OBOS_ARCH).o : SEARCH on [ FGristFiles cmp.c divrem.c mul.c mul_n.c dbl2mpn.c ] = [ FDirName $(OBOS_TOP) src system libroot posix glibc arch ] ; + +OPTIM = $(originalOPTIM) ; + +# restore CCFLAGS +CCFLAGS = $(originalCCFlags) ; + +# restore KERNEL_CCFLAGS +KERNEL_CCFLAGS = $(originalKERNEL_CCFLAGS) ;