[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
osf5.1 + cc + -pthread
From: |
Mark Andrews |
Subject: |
osf5.1 + cc + -pthread |
Date: |
Wed, 01 Dec 2004 15:59:58 +1100 |
libtool passes -pthread to ld which fails.
A quick inspection of 1.5.10 doesn't show a obvious fix.
host=alphaev6-dec-osf5.1
PROGRAM=ltmain.sh
PACKAGE=libtool
VERSION=1.5.2
TIMESTAMP=" (1.1220.2.60 2004/01/25 12:25:08)"
e.g.
/bin/ksh /var/staff/marka/robie/builds/bind9.v9_2.thread+libtool/bind9/libtool
--mode=link cc -pthread -std -g
-I/var/staff/marka/robie/builds/bind9.v9_2.thread+libtool/bind9
-I./unix/include -I./pthreads/include -I./include -I./include -D_REENTRANT
-D_POSIX_PII_SOCKET -o libisc.la -rpath /usr/local/lib -version-info
8:5:1 inet_pton.lo assertions.lo base64.lo bitstring.lo buffer.lo
bufferlist.lo commandline.lo error.lo event.lo hash.lo heap.lo hex.lo
hmacmd5.lo lex.lo lfsr.lo lib.lo log.lo md5.lo mem.lo mutexblock.lo
netaddr.lo ondestroy.lo quota.lo random.lo ratelimiter.lo result.lo rwlock.lo
serial.lo sha1.lo sockaddr.lo string.lo symtab.lo task.lo taskpool.lo
timer.lo version.lo unix/app.lo unix/dir.lo unix/entropy.lo
unix/errno2result.lo unix/file.lo unix/fsaccess.lo unix/interfaceiter.lo
unix/keyboard.lo unix/net.lo unix/os.lo unix/resource.lo unix/socket.lo
unix/stdio.lo unix/stdtime.lo unix/strerror.lo unix/syslog.lo unix/time.lo
nls/msgc!
at.lo pthreads/condition.lo pthreads/mutex.lo pthreads/thread.lo -lpthread
/bin/ld -shared -expect_unresolved \* .libs/inet_pton.o .libs/assertions.o
.libs/base64.o .libs/bitstring.o .libs/buffer.o .libs/bufferlist.o
.libs/commandline.o .libs/error.o .libs/event.o .libs/hash.o .libs/heap.o
.libs/hex.o .libs/hmacmd5.o .libs/lex.o .libs/lfsr.o .libs/lib.o .libs/log.o
.libs/md5.o .libs/mem.o .libs/mutexblock.o .libs/netaddr.o .libs/ondestroy.o
.libs/quota.o .libs/random.o .libs/ratelimiter.o .libs/result.o .libs/rwlock.o
.libs/serial.o .libs/sha1.o .libs/sockaddr.o .libs/string.o .libs/symtab.o
.libs/task.o .libs/taskpool.o .libs/timer.o .libs/version.o unix/.libs/app.o
unix/.libs/dir.o unix/.libs/entropy.o unix/.libs/errno2result.o
unix/.libs/file.o unix/.libs/fsaccess.o unix/.libs/interfaceiter.o
unix/.libs/keyboard.o unix/.libs/net.o unix/.libs/os.o unix/.libs/resource.o
unix/.libs/socket.o unix/.libs/stdio.o unix/.libs/stdtime.o
unix/.libs/strerror.o unix/.libs/syslog.o unix/.libs/time.o nls/.libs/msgcat.o
pthreads/.libs/condition.o pthreads/.lib!
s/mutex.o pthreads/.libs/thread.o -pthread -lpthread -lc -msym -soname
libisc.so.7 `test -n "8.1.5:7.0:8.0" && echo -set_version 8.1.5:7.0:8.0`
-update_registry .libs/so_locations -o .libs/libisc.so.8.1.5
/bin/ld:
-pthread: Unknown flag
/bin/ld: Usage: /bin/ld [options] file [...]
Suggested fix.
Index: ltmain.sh
diff -u ltmain.sh:1.5.12.3 bind9/ltmain.sh:1.5.12.4
--- ltmain.sh:1.5.12.3 Tue Feb 24 02:15:18 2004
+++ ltmain.sh Wed Dec 1 04:50:44 2004
@@ -1356,7 +1356,18 @@
continue
;;
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+ -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe)
+ deplibs="$deplibs $arg"
+ continue
+ ;;
+
+ -pthread)
+ case $host in
+ *-*-osf5.1)
+ # -pthread is a compiler only option
+ continue
+ ;;
+ esac
deplibs="$deplibs $arg"
continue
;;
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: address@hidden
- osf5.1 + cc + -pthread,
Mark Andrews <=