mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
Fix Perl builds on Illumos.
This commit is contained in:
parent
cbfc76d5ca
commit
9baf9e98d1
@ -17,7 +17,8 @@ stdenv.mkDerivation rec {
|
|||||||
patches =
|
patches =
|
||||||
[ # Do not look in /usr etc. for dependencies.
|
[ # Do not look in /usr etc. for dependencies.
|
||||||
./no-sys-dirs.patch
|
./no-sys-dirs.patch
|
||||||
]
|
]
|
||||||
|
++ stdenv.lib.optional stdenv.isSunOS ./ld-shared.patch
|
||||||
++ stdenv.lib.optional stdenv.isDarwin ./no-libutil.patch;
|
++ stdenv.lib.optional stdenv.isDarwin ./no-libutil.patch;
|
||||||
|
|
||||||
# Build a thread-safe Perl with a dynamic libperls.o. We need the
|
# Build a thread-safe Perl with a dynamic libperls.o. We need the
|
||||||
|
11
pkgs/development/interpreters/perl/5.14/ld-shared.patch
Normal file
11
pkgs/development/interpreters/perl/5.14/ld-shared.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- perl-5.14.2/hints/solaris_2.sh.orig 2013-02-14 19:29:49.453988140 +0000
|
||||||
|
+++ perl-5.14.2/hints/solaris_2.sh 2013-02-14 19:30:31.681631019 +0000
|
||||||
|
@@ -568,7 +568,7 @@
|
||||||
|
# ccflags="$ccflags -Wa,`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"
|
||||||
|
# fi
|
||||||
|
ldflags="$ldflags -m64"
|
||||||
|
- lddlflags="$lddlflags -G -m64"
|
||||||
|
+ lddlflags="$lddlflags -shared -m64"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
getconfccflags="`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"
|
@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
|
|||||||
[ # Do not look in /usr etc. for dependencies.
|
[ # Do not look in /usr etc. for dependencies.
|
||||||
./no-sys-dirs.patch
|
./no-sys-dirs.patch
|
||||||
]
|
]
|
||||||
|
++ stdenv.lib.optional stdenv.isSunOS ./ld-shared.patch
|
||||||
++ stdenv.lib.optional stdenv.isDarwin ./no-libutil.patch;
|
++ stdenv.lib.optional stdenv.isDarwin ./no-libutil.patch;
|
||||||
|
|
||||||
# Build a thread-safe Perl with a dynamic libperls.o. We need the
|
# Build a thread-safe Perl with a dynamic libperls.o. We need the
|
||||||
|
11
pkgs/development/interpreters/perl/5.16/ld-shared.patch
Normal file
11
pkgs/development/interpreters/perl/5.16/ld-shared.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- perl-5.16.2/hints/solaris_2.sh.orig 2013-02-14 19:29:49.453988140 +0000
|
||||||
|
+++ perl-5.16.2/hints/solaris_2.sh 2013-02-14 19:30:31.681631019 +0000
|
||||||
|
@@ -568,7 +568,7 @@
|
||||||
|
# ccflags="$ccflags -Wa,`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"
|
||||||
|
# fi
|
||||||
|
ldflags="$ldflags -m64"
|
||||||
|
- lddlflags="$lddlflags -G -m64"
|
||||||
|
+ lddlflags="$lddlflags -shared -m64"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
getconfccflags="`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"
|
Loading…
Reference in New Issue
Block a user