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
This commit is contained in:
Jérôme Duval
2005-06-15 15:02:06 +00:00
parent ba61835820
commit 9d69de4c3d
@@ -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) ;