| @@ -1,22 +1,35 @@ | | | @@ -1,22 +1,35 @@ |
1 | $NetBSD: patch-af,v 1.1.1.1 2006/12/19 22:54:51 joerg Exp $ | | 1 | $NetBSD: patch-af,v 1.2 2009/02/25 14:20:50 joerg Exp $ |
| | | 2 | |
| | | 3 | Use ginstall on Solaris 11, /usr/ucb/install has been removed. |
2 | | | 4 | |
3 | Run-time path fix for Solaris for the X client libraries. Without this | | 5 | Run-time path fix for Solaris for the X client libraries. Without this |
4 | patch, libraries such as libXext.so will not contain a run-time link path | | 6 | patch, libraries such as libXext.so will not contain a run-time link path |
5 | to /usr/pkg/xorg/lib, causing run time link failures or possibly linking | | 7 | to /usr/pkg/xorg/lib, causing run time link failures or possibly linking |
6 | with other (non-Pkgsrc) X libraries on the system! | | 8 | with other (non-Pkgsrc) X libraries on the system! |
7 | | | 9 | |
8 | --- sun.cf.orig 2005-12-04 06:20:48.000000000 +1300 | | 10 | --- sun.cf.orig 2005-12-03 18:20:48.000000000 +0100 |
9 | +++ sun.cf 2006-10-26 13:11:56.535497000 +1300 | | 11 | +++ sun.cf |
10 | @@ -688,10 +688,10 @@ | | 12 | @@ -429,7 +429,9 @@ XCOMM SunPro C++ CplusplusCompilerMajorV |
| | | 13 | # define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS |
| | | 14 | # endif |
| | | 15 | # endif |
| | | 16 | -# if OSMinorVersion > 3 |
| | | 17 | +# if OSMinorVersion >= 11 |
| | | 18 | +# define InstallCmd /usr/bin/ginstall |
| | | 19 | +# elif OSMinorVersion > 3 |
| | | 20 | # define InstallCmd /usr/ucb/install |
| | | 21 | # endif |
| | | 22 | #ifndef LargefileDefines |
| | | 23 | @@ -688,10 +690,10 @@ XCOMM SunPro C++ CplusplusCompilerMajorV |
11 | /* This is to work around what appears to be a PIC bug in some gcc/egcs | | 24 | /* This is to work around what appears to be a PIC bug in some gcc/egcs |
12 | versions that shows up with the Solaris 7/x86 <ctype.h>. */ | | 25 | versions that shows up with the Solaris 7/x86 <ctype.h>. */ |
13 | # define SharedLibraryLdCmd $(LD) | | 26 | # define SharedLibraryLdCmd $(LD) |
14 | -# define SharedLibraryLoadFlags -G -z textwarn | | 27 | -# define SharedLibraryLoadFlags -G -z textwarn |
15 | +# define SharedLibraryLoadFlags -G -z textwarn LibraryRpathLoadFlags | | 28 | +# define SharedLibraryLoadFlags -G -z textwarn LibraryRpathLoadFlags |
16 | # else | | 29 | # else |
17 | # define SharedLibraryLdCmd $(CC) | | 30 | # define SharedLibraryLdCmd $(CC) |
18 | -# define SharedLibraryLoadFlags -shared -z text | | 31 | -# define SharedLibraryLoadFlags -shared -z text |
19 | +# define SharedLibraryLoadFlags -shared -z text LibraryRpathLoadFlags | | 32 | +# define SharedLibraryLoadFlags -shared -z text LibraryRpathLoadFlags |
20 | # endif | | 33 | # endif |
21 | # endif | | 34 | # endif |
22 | # else | | 35 | # else |