[111184] trunk/dports/tex/texlive-bin/Portfile

larryv at macports.org larryv at macports.org
Mon Sep 16 12:17:43 PDT 2013


Revision: 111184
          https://trac.macports.org/changeset/111184
Author:   larryv at macports.org
Date:     2013-09-16 12:17:42 -0700 (Mon, 16 Sep 2013)
Log Message:
-----------
texlive-bin: Add -stdlib to OBJCXXFLAGS if necessary (#40474).

Modified Paths:
--------------
    trunk/dports/tex/texlive-bin/Portfile

Modified: trunk/dports/tex/texlive-bin/Portfile
===================================================================
--- trunk/dports/tex/texlive-bin/Portfile	2013-09-16 18:33:38 UTC (rev 111183)
+++ trunk/dports/tex/texlive-bin/Portfile	2013-09-16 19:17:42 UTC (rev 111184)
@@ -178,15 +178,25 @@
 configure.ldflags-delete    -L${prefix}/lib
 configure.cppflags-append   -isystem${prefix}/include
 configure.env-append        LIBRARY_PATH=${prefix}/lib
+
+set cxx_stdlibflags {}
+if {[info exists configure.cxx_stdlib] &&
+    ${configure.cxx_stdlib} ne {} &&
+    [string match *clang* ${configure.cxx}]
+} then {
+    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
+}
+
+# TODO: Remove when base supports OBJCXX and OBJCXXFLAGS (2.2.1?).
 configure.env-append        OBJCXX=${configure.cxx} \
-                            OBJCXXFLAGS="${configure.objcflags} [get_canonical_archflags objc]"
+                            OBJCXXFLAGS="${configure.objcflags} ${cxx_stdlibflags} [get_canonical_archflags objc]"
 
 # work around bug in texlive makefiles where $OBJC is not recorded
 # during configure phase
 build.env                   OBJC=${configure.objc} \
                             OBJCFLAGS="${configure.objcflags} [get_canonical_archflags objc]" \
                             OBJCXX=${configure.cxx} \
-                            OBJCXXFLAGS="${configure.objcflags} [get_canonical_archflags objc]"            
+                            OBJCXXFLAGS="${configure.objcflags} ${cxx_stdlibflags} [get_canonical_archflags objc]"            
 
 post-destroot   {
     # Anything that gets installed into texmf-dist will be installed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130916/4d68a45e/attachment.html>


More information about the macports-changes mailing list