perl: avoid --no-cpp-precomp on darwin, (close #1160)

Taken from https://trac.macports.org/ticket/38913
vcunat renamed the patch

+12 -1
+11
pkgs/development/interpreters/perl/5.16/cpp-precomp.patch
···
··· 1 + --- a/hints/darwin.sh 2013-05-08 11:13:45.000000000 -0600 2 + +++ b/hints/darwin.sh 2013-05-08 11:15:04.000000000 -0600 3 + @@ -129,7 +129,7 @@ 4 + 5 + # Avoid Apple's cpp precompiler, better for extensions 6 + if [ "X`echo | ${cc} -no-cpp-precomp -E - 2>&1 >/dev/null`" = "X" ]; then 7 + - cppflags="${cppflags} -no-cpp-precomp" 8 + + #cppflags="${cppflags} -no-cpp-precomp" 9 + 10 + # This is necessary because perl's build system doesn't 11 + # apply cppflags to cc compile lines as it should.
+1 -1
pkgs/development/interpreters/perl/5.16/default.nix
··· 23 ./no-sys-dirs.patch 24 ] 25 ++ optional stdenv.isSunOS ./ld-shared.patch 26 - ++ optional stdenv.isDarwin ./no-libutil.patch; 27 28 # Build a thread-safe Perl with a dynamic libperls.o. We need the 29 # "installstyle" option to ensure that modules are put under
··· 23 ./no-sys-dirs.patch 24 ] 25 ++ optional stdenv.isSunOS ./ld-shared.patch 26 + ++ stdenv.lib.optional stdenv.isDarwin [ ./cpp-precomp.patch ./no-libutil.patch ] ; 27 28 # Build a thread-safe Perl with a dynamic libperls.o. We need the 29 # "installstyle" option to ensure that modules are put under