pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/perl5



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Nov  5 18:04:20 UTC 2023

Modified Files:
        pkgsrc/lang/perl5: hacks.mk

Log Message:
perl5: Fix building on Mac OS X Tiger.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 pkgsrc/lang/perl5/hacks.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/perl5/hacks.mk
diff -u pkgsrc/lang/perl5/hacks.mk:1.28 pkgsrc/lang/perl5/hacks.mk:1.29
--- pkgsrc/lang/perl5/hacks.mk:1.28     Thu Jul  6 09:22:14 2023
+++ pkgsrc/lang/perl5/hacks.mk  Sun Nov  5 18:04:20 2023
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.28 2023/07/06 09:22:14 wiz Exp $
+# $NetBSD: hacks.mk,v 1.29 2023/11/05 18:04:20 nia Exp $
 
 .if !defined(PERL5_HACKS_MK)
 PERL5_HACKS_MK=        defined
@@ -57,4 +57,14 @@ CFLAGS+=     -fno-reorder-blocks
 .  endif
 .endif
 
+### [Thu Nov 5 19:00:00 CEST 2023  : nia ]
+# The package includes a hack to disable the default of -Werror
+# for implicit function declarations in the newest versions
+# of XCode (pkgsrc also contains this hack, in mk/). However,
+# very old versions of Darwin use GCC 4 which doesn't understand
+# this command line argument.
+.if ${OPSYS} == "Darwin" && empty(PKGSRC_COMPILER:M*clang*)
+BUILDLINK_TRANSFORM+=  rm:-Wno-error=implicit-function-declaration
+.endif
+
 .endif  # PERL5_HACKS_MK



Home | Main Index | Thread Index | Old Index