Don't usenm on haiku
authorTony Cook <tony@develop-help.com>
Wed, 2 Jan 2013 22:36:27 +0000 (09:36 +1100)
committerTony Cook <tony@develop-help.com>
Wed, 2 Jan 2013 22:36:27 +0000 (09:36 +1100)
This cam up from building perl with nm enabled and make test_harness
croaking with the complaint that times wasn't implemented.

nm /system/lib/libroot.so | grep times produces:

00095540 T __times
00095460 T __times_beos
0009b690 t itimerspec_to_bigtimes__FRC10itimerspecRxT1
00095540 T times@@LIBROOT_1_ALPHA4
00095460 T times@LIBROOT_BASE
000981c8 t timesub
000958b4 T utimes

of which the two times@... entries appear to be version symbols.

The system perl on Haiku-OS alpha4.1 is built with -Uusenm

hints/haiku.sh

index c908bc5..fa8ebe5 100644 (file)
@@ -35,3 +35,10 @@ ld='gcc'
 case "$ldlibpthname" in
 '') ldlibpthname=LIBRARY_PATH ;;
 esac
+
+# as of alpha 4.1 (at the latest) some symbols are versioned,
+# confusing the nm lookup
+case "$usenm" in
+'') usenm='undef' ;;
+esac
+