Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: PAR pp macOs set -mmacosx-version-min

by beech (Parson)
on Jun 19, 2018 at 23:46 UTC ( #1216976=note: print w/replies, xml ) Need Help??

in reply to Re^2: PAR pp macOs set -mmacosx-version-min
in thread PAR pp macOs set -mmacosx-version-min


So it doesn't already show up in any of the generated makefiles?

One of CFLAGS/LDFLAGS would be the place to add it, possibly by editing postamble in

If its not specified in any makefile , says you can specify the same thing by  export MACOSX_DEPLOYMENT_TARGET=10.6

Replies are listed 'Best First'.
Re^4: PAR pp macOs set -mmacosx-version-min
by IB2017 (Pilgrim) on Jun 20, 2018 at 10:58 UTC

    No success so far. Exporting export MACOSX_DEPLOYMENT_TARGET=10.6 does not produce any effect when reinstalling the module cpanm -f PAR::Packer. Reading the environment variables of my open Terminal with:

    foreach (sort keys %ENV) { print "$_ = $ENV{$_}\n"; }

    produces LC_VERSION_MIN_MACOSX  =  10.07 but - after reinstalling the module (I also reinstalled the PAR module, as it must have some influence on the compiler settings), still my binary has

    cmd LC_VERSION_MIN_MACOSX cmdsize 16 version 10.13 sdk 10.13

    I found the following in the Makefile (inside the main folder and milder)

    LDDLFLAGS = -mmacosx-version-min=10.13 -bundle -undefined dynamic_loo +kup -L/usr/local/lib -fstack-protector-strong LDFLAGS = -mmacosx-version-min=10.13 -fstack-protector-strong -L/usr/ +local/lib

    However, changing the value (changed everywhere) and running make -> make test -> make install still generates a binary with the -mmacosx-version-min=10.13 flag. Getting a bit depressed.

      still generates a binary with the -mmacosx-version-min=10.13 flag.


      Did you check with CCFLAGS?

      If that fails try adding to  CC= or  LD= definition

      Did you check on these files (they're what should get installed)?

      otool -l binary blib/script/parl.exe otool -l binary blib/script/parldyn.exe

        CCFLAGS is set as this

        CCFLAGS = -fno-common -DPERL_DARWIN -mmacosx-version-min=10.07 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV

        I tried adding

        CC = -mmacosx-version-min=10.07 LD = -mmacosx-version-min=10.07

        I still got my binary with 10.13

        I checkt

        otool -l blib/script/parl otool -l blib/script/parldyn

        They both still have 10.13

        I have noticed that when I run "make" I get the following warnings:

        Makefile:848: warning: overriding commands for target `.c.o' Makefile:338: warning: ignoring old commands for target `.c.o' "/Users/fc/perl5/perlbrew/perls/perl-5.24.4/bin/perl" my_p +ar_pl < ../script/ > my_par_pl.c "/Users/fc/perl5/perlbrew/perls/perl-5.24.4/bin/perl" sha1.c.PL cc -c -fno-common -DPERL_DARWIN -mmacosx-version-min=10.13 -fno-strict +-aliasing -pipe -fstack-protector-strong -I/usr/local/include -DPERL_ +USE_SAFE_PUTENV -I/Users/fc/perl5/perlbrew/perls/perl-5.24.4/lib/5.2 +4.4/darwin-2level/CORE -DLDLIBPTHNAME=\"DYLD_LIBRARY_PATH\" -DPARL_E +XE=\"parl\" -DPAR_PACKER_VERSION=\"1.045\" -O3 main.c cc main.o -mmacosx-version-min=10.13 -fstack-protector-strong -L/usr/ +local/lib -L/Users/fc/perl5/perlbrew/perls/perl-5.24.4/lib/5.24.4/da +rwin-2level/CORE -lperl -lpthread -ldl -lm -lutil -lc -o ./par

        Here must be the problem, as I see again the 10.13 value

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1216976]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2021-04-10 14:36 GMT
Find Nodes?
    Voting Booth?

    No recent polls found