Displaying 1 result from an estimated 1 matches for "klibc_ldflag".
Did you mean:
klibc_ldflags
2005 Mar 06
1
Detecting KLIBC from userspace
...t filter gcc, -g
dnl and the -v option we passed
CFLAGS="`$KLCC -v -c 2>&1 | $AWK '{ $1 = ""; gsub(/(^| )(-v|-g)( +|$)/, " "); print; exit }'`"
dnl Check what LDFLAGS klcc passes to ld, but filter ld and '-o a.out'
KLIBC_LDFLAGS="`$KLCC -v 2>&1 | $AWK '{ $1 = ""; gsub(/(^| )-o *[[^ ]]*( +|$)/, " "); print; exit }'`"
KLIBC_LIBDIR="`echo $KLIBC_LDFLAGS | sed -e 's:\(^.* \|^\)\(/[[^[:space:]]]*\)/crt0.o.*:\2:'`"
FLAVOUR="klibc "
fi
-----...