diff options
author | julian <julian@FreeBSD.org> | 1999-12-01 04:55:46 +0800 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1999-12-01 04:55:46 +0800 |
commit | f672514d915eb5d594aa69d91a24805e4336f033 (patch) | |
tree | 942626cb21a0e37f03c95b0ef0ff248dad1a8b73 /devel | |
parent | cf804b10d272d9d6a1320ded697429ed14a876e6 (diff) | |
download | freebsd-ports-gnome-f672514d915eb5d594aa69d91a24805e4336f033.tar.gz freebsd-ports-gnome-f672514d915eb5d594aa69d91a24805e4336f033.tar.zst freebsd-ports-gnome-f672514d915eb5d594aa69d91a24805e4336f033.zip |
I misunderstood Richard's instructions.
Put the Message file in the right place.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/linuxthreads/pkg-message | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/devel/linuxthreads/pkg-message b/devel/linuxthreads/pkg-message index d9a3a341431f..b96e7c746873 100644 --- a/devel/linuxthreads/pkg-message +++ b/devel/linuxthreads/pkg-message @@ -1,17 +1,33 @@ NOTES: This package is intended to run on FreeBSD 4.0-current or -FreeBSD 3.X, with sources more recent than March 1, 1999. - -This package does not currently work on an SMP machine. It also only -works on i386 architectures. +FreeBSD 3.X, with sources more recent than March 1, 1999, i386 processors +only. Compile your applications that use Linux Threads with the following command line options: - -D_THREAD_SAFE -DLINUXTHREADS -lpthread -or (equivalently): - -D_THREAD_SAFE -DLINUXTHREADS -kthread + -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -llthread + +Note that the include (-I..) directive shown here should appear before any other include +directive that would cause the compiler to find the FreeBSD file /usr/include/pthread.h. +Using the FreeBSD pthread.h instead of the linuxthreads pthread.h will result in an app +fails in many odd and maybe spectacular ways. + +In order to facilitate porting applications witch expect a libpthread, you can create +the following symlinks if you want: + + ln -s /usr/local/lib/liblthread.a /usr/lib/libpthread.a + ln -s /usr/local/lib/liblthread_p.a /usr/lib/libpthread_p.a + ln -s /usr/local/lib/liblthread.so.0 /usr/lib/libpthread.so.0 + ln -s /usr/local/lib/liblthread.so.0 /usr/lib/libpthread.so + /sbin/ldconfig -m /usr/lib + +If you do this, you can instead use: + + -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -lpthread +or + -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -kthread DO NOT use libc_r with Linux Threads, and do not compile/link with the -pthread option (which pulls in libc_r). DO link with libc |