til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

Eliminate compilation warnings on OSX

When compiling XS modules on OSX, you might get some warnings like:

ld: warning: object file (SystemDirectory.o) was built for
newer OSX version (10.11) than being linked (10.4)

This can be eliminated by specifying your OSX version, when building new perls under Perlbrew

PERLBREW_CONFIGURE_FLAGS='-de -Dccflags="-mmacosx-version-min=10.12" \
-Dccdlflags="-mmacosx-version-min=10.12" \
-Dldflags="-mmacosx-version-min=10.12" \
-Dlddlflags="-mmacosx-version-min=10.12"' \
perlbrew install 5.22.3 --64all -j 2

References