]> granicus.if.org Git - graphviz/commitdiff
add '-Wl,-headerpad_max_install_names' to LDFLAGS, darwin only, resolves #2325
authorJohn Ellson <ellson@research.att.com>
Thu, 5 Sep 2013 14:38:04 +0000 (10:38 -0400)
committerJohn Ellson <ellson@research.att.com>
Thu, 5 Sep 2013 14:38:04 +0000 (10:38 -0400)
configure.ac

index 2edef24bf3b885322664bd1a12e3098b263aa70f..962fbaf2ab92803d24741bd45ed608b783abe44e 100644 (file)
@@ -314,6 +314,7 @@ if test "${GCC}" != "yes" ; then
             ;;
        *-apple-darwin* )
            CFLAGS="${CFLAGS} -fno-common"
+           LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names"
            ;;
        *-sgi-irix* )
            ;;
@@ -341,6 +342,7 @@ else
             ;;
            *-apple-darwin* )
                CFLAGS="${CFLAGS} -fno-common -Wall"
+               LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names"
                ;;
            *-freebsd* )
                CFLAGS="${CFLAGS} -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math"