Displaying 1 result from an estimated 1 matches for "klibc_libdir".
Did you mean:
klibc_bindir
2005 Mar 06
1
Detecting KLIBC from userspace
...+|$)/, " "); 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
-----
Which is imho ugly. Anyhow, how about attached patch that produces a
klibc-config which can be used to retrieve all needed info to build
against klibc (o...