Skip to content

Instantly share code, notes, and snippets.

@zmughal
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zmughal/d4250c9e9d64441d4739 to your computer and use it in GitHub Desktop.
Save zmughal/d4250c9e9d64441d4739 to your computer and use it in GitHub Desktop.
#!/bin/sh
# run this in a script session
echo 'package force_clang; use ExtUtils::MakeMaker::Config; $Config{cc} = "clang"; 1' > force_clang.pm; export PERL5OPT="-I$(pwd) -Mforce_clang"; cpanm --verbose ExtUtils::F77; perl Makefile.PL; export PERL5OPT=""; make
grep '^cc' typescript
cc -shared -O2 -L/usr/local/lib -fstack-protector Bad.o -o ../../blib/arch/auto/PDL/Bad/Bad.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Ops.o -o ../../blib/arch/auto/PDL/Ops/Ops.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Ufunc.o -o ../../blib/arch/auto/PDL/Ufunc/Ufunc.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Primitive.o -o ../../blib/arch/auto/PDL/Primitive/Primitive.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Slices.o -o ../../blib/arch/auto/PDL/Slices/Slices.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Math.o ndtri.o infinity.o quiet_nan.o cpoly.o const.o mtherr.o polevl.o -o ../../blib/arch/auto/PDL/Math/Math.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector MatrixOps.o blas.o eigens.o simq.o svd.o eigen.o complex.o matrix.o sslib.o -o ../../blib/arch/auto/PDL/MatrixOps/MatrixOps.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Complex.o -o ../../blib/arch/auto/PDL/Complex/Complex.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Rout.o -o ../../../blib/arch/auto/PDL/Graphics/TriD/Rout/Rout.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Window.o -o ../../../blib/arch/auto/PDL/Graphics/PGPLOT/Window/Window.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector IIS.o -o ../../blib/arch/auto/PDL/Graphics/IIS/IIS.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Misc.o -o ../../blib/arch/auto/PDL/IO/Misc/Misc.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Pnm.o -o ../../blib/arch/auto/PDL/IO/Pnm/Pnm.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Storable.o -o ../../blib/arch/auto/PDL/IO/Storable/Storable.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector ImageRGB.o ppm_quant.o -o ../../blib/arch/auto/PDL/ImageRGB/ImageRGB.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Gaussian.o -o ../../../blib/arch/auto/PDL/Fit/Gaussian/Gaussian.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector FFT.o fftn.o -o ../../blib/arch/auto/PDL/FFT/FFT.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Image2D.o resample.o -o ../../blib/arch/auto/PDL/Image2D/Image2D.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector ImageND.o -o ../../blib/arch/auto/PDL/ImageND/ImageND.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector CallExt.o -o ../../blib/arch/auto/PDL/CallExt/CallExt.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Transform.o -o ../../blib/arch/auto/PDL/Transform/Transform.so \
cc -shared -O2 -L/usr/local/lib -fstack-protector Compression.o -o ../../blib/arch/auto/PDL/Compression/Compression.so \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment