In metaconfig.git, the branch master has been updated

<http://perl5.git.perl.org/metaconfig.git/commitdiff/afc14d33ffd2b51234009e3cbe7b031cb56ed870?hp=a6036f3e63f6894f586d87d13db4f87e6da29f72>

- Log -----------------------------------------------------------------
commit afc14d33ffd2b51234009e3cbe7b031cb56ed870
Author: H.Merijn Brand - Tux <[email protected]>
Date:   Sat Jul 26 21:39:53 2014 +0200

    Handle hyphens when searching cpp symbols
    
    Simplified solution to a problem signaled and patched by Brian
    
    This is really just for Android, which in Configure is
    known as linux-android; the hyphen is passes as-is to
    the preprocessor, which handles it as a minus.
    
    So don't do that.
    
    Original patch was ecd78e215c9b4ab3f3ab71b30e76bbead372a84e
    Author: Brian Fraser <[email protected]>  2014-07-25 19:46:41
-----------------------------------------------------------------------

Summary of changes:
 U/modified/Cppsym.U | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/U/modified/Cppsym.U b/U/modified/Cppsym.U
index ce0de1e..fb09952 100644
--- a/U/modified/Cppsym.U
+++ b/U/modified/Cppsym.U
@@ -148,7 +148,10 @@ XPG2_EXTENDED XPG3 XPG3_EXTENDED XPG4 XPG4_EXTENDED
 z8000 zarch
 EOSH
 # Maybe put other stuff here too.
-cat <<EOSH >>Cppsym.know
+?X:Some OS's will have a dash in their $osname
+?X:e.g. Android is known as linux-android
+?X:The preprocessor will interpret the dash as a minus
+./tr '-' '_' <<EOSH >>Cppsym.know
 $osname
 EOSH
 ./tr '[a-z]' '[A-Z]' < Cppsym.know > Cppsym.a

--
perl5 metaconfig repository

Reply via email to