[parsec-users] building parsec with static option

Mahmood Naderan nt_mahmood at yahoo.com
Fri Feb 3 03:03:50 EST 2012


Hi
I want to build a static binary of parsec benchmarks. To do this, I added "-static" in gcc.bldconf like this:

export CFLAGS="-O3 -static -funroll-loops -fprefetch-loop-arrays ${PORTABILITY_FLAGS}"
export CXXFLAGS="-O3 -static -funroll-loops -fprefetch-loop-arrays -fpermissive -fno-exceptions ${PORTABILITY_FLAGS}"

When I run "./bin/parsecmgmt -a build -c gcc-serial -p bodytrack", the binary is created but it is a shared object:
 /data/mahmood/parsec/parsec-2.1/pkgs/apps/bodytrack/inst/amd64-linux.gcc-serial/bin$ ldd bodytrack
    linux-vdso.so.1 =>  (0x00007fff10bbe000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fdcae889000)
    libm.so.6 => /lib/libm.so.6 (0x00007fdcae606000)
    libc.so.6 => /lib/libc.so.6 (0x00007fdcae282000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fdcaeba9000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fdcae06b000)

How can I fix that?

regards,

// Naderan *Mahmood;


More information about the parsec-users mailing list