[pcre-dev] [Bug 1683] New: libpcrecpp recipe does not honor …

Kezdőlap
Üzenet törlése
Szerző: admin
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 1683] New: libpcrecpp recipe does not honor -force_cpusubtype_ALL on OS X
https://bugs.exim.org/show_bug.cgi?id=1683

            Bug ID: 1683
           Summary: libpcrecpp recipe does not honor -force_cpusubtype_ALL
                    on OS X
           Product: PCRE
           Version: 8.37
          Hardware: Other
                OS: MacOS X
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: noloader@???
                CC: pcre-dev@???


I am using the original PCRE library due to Git (Git requires it, and its
`configure` fails a check for `pcre_version` if using PCRE2). I configured with
the following:

  export CFLAGS="-arch ppc -force_cpusubtype_ALL"
  export LDFLAGS="-Wl,-force_cpusubtype_ALL"
  ./configure --enable-static --enable-shared --enable-utf --enable-pcre8 \
    --enable-pcre16 --enable-pcre32 --enable-unicode-properties \
    --enable-newline-is-any --enable-pcregrep-libz --enable-pcregrep-libbz2 \
    --with-gnu-ld --prefix=/usr/local/ppc


I then did the same for PPC64 using "export CFLAGS="-arch ppc64
-force_cpusubtype_ALL"

When I attempted to build a fat libpcrecpp.a, it resulted in an error:

  sudo lipo -create /usr/local/ppc/lib/libpcrecpp.a \
    /usr/local/ppc64/lib/libpcrecpp.a \
    -output /usr/local/lib/libpcrecpp.a


lipo: /usr/local/ppc/lib/libpcrecpp.a and
/usr/local/ppc64/lib/libpcrecpp.a have the same architectures (ppc7400)
and can't be in the same fat output file

Based on:

    $ lipo -info /usr/local/ppc/lib/libpcrecpp.a 
    input file /usr/local/ppc/lib/libpcrecpp.a is not a fat file
    Non-fat file: /usr/local/ppc/lib/libpcrecpp.a is architecture: ppc7400
    $ lipo -info /usr/local/ppc64/lib/libpcrecpp.a 
    input file /usr/local/ppc64/lib/libpcrecpp.a is not a fat file
    Non-fat file: /usr/local/ppc64/lib/libpcrecpp.a is architecture: ppc7400


I'm guessing libpcrecpp is not utilizing CFLAGS.

The other library recipes do honor CFLAGS and the options "-arch ppc
-force_cpusubtype_ALL", and lipo creates the fat binaries.

--
You are receiving this mail because:
You are on the CC list for the bug.