Skip to content

Commit

Permalink
Add debug info to binaries compiled in test script.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 23, 2009
1 parent 4373054 commit b2af051
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test.sh
Expand Up @@ -9,14 +9,14 @@ cd cmake-build
cmake ../..
make -j2

gcc -o hello.so ../hello-lib.c -shared -fPIC -m32
gcc -o hello-x86 ../hello.c hello.so -m32 -Wl,-rpath,.
gcc -o hello-dlopen-x86 ../hello-dlopen.c -ldl -m32
gcc -O0 -ggdb3 -o hello.so ../hello-lib.c -shared -fPIC -m32
gcc -O0 -ggdb3 -o hello-x86 ../hello.c hello.so -m32 -Wl,-rpath,.
gcc -O0 -ggdb3 -o hello-dlopen-x86 ../hello-dlopen.c -ldl -m32
mv hello.so hello-x86.so

gcc -o hello.so ../hello-lib.c -shared -fPIC -m64
gcc -o hello-amd64 ../hello.c hello.so -m64 -Wl,-rpath,.
gcc -o hello-dlopen-amd64 ../hello-dlopen.c -ldl -m64
gcc -O0 -ggdb3 -o hello.so ../hello-lib.c -shared -fPIC -m64
gcc -O0 -ggdb3 -o hello-amd64 ../hello.c hello.so -m64 -Wl,-rpath,.
gcc -O0 -ggdb3 -o hello-dlopen-amd64 ../hello-dlopen.c -ldl -m64
mv hello.so hello-amd64.so

./fatelf-glue hello hello-x86 hello-amd64
Expand Down

0 comments on commit b2af051

Please sign in to comment.