Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77252 - trunk/libs/context/example
From: oliver.kowalke_at_[hidden]
Date: 2012-03-06 17:31:33


Author: olli
Date: 2012-03-06 17:31:32 EST (Tue, 06 Mar 2012)
New Revision: 77252
URL: http://svn.boost.org/trac/boost/changeset/77252

Log:
t script for pic code added

Added:
   trunk/libs/context/example/pic.sh (contents, props changed)

Added: trunk/libs/context/example/pic.sh
==============================================================================
--- (empty file)
+++ trunk/libs/context/example/pic.sh 2012-03-06 17:31:32 EST (Tue, 06 Mar 2012)
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+g++ -x assembler-with-cpp -fPIC -O3 -finline-functions -Wno-inline -Wall -march=native -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_DYN_LINK=1 -DNDEBUG -I../../.. -c -o fcontext_x86_64_sysv_elf_gas.o ../src/asm/fcontext_x86_64_sysv_elf_gas.S
+
+g++ -ftemplate-depth-128 -fPIC -O3 -finline-functions -Wno-inline -Wall -march=native -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_DYN_LINK=1 -DNDEBUG -I../../.. -c -o fcontext.o ../src/fcontext.cpp
+
+g++ -ftemplate-depth-128 -fPIC -O3 -finline-functions -Wno-inline -Wall -march=native -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_DYN_LINK=1 -DNDEBUG -I../../.. -c -o stack_allocator_posix.o ../src/stack_allocator_posix.cpp
+
+g++ -ftemplate-depth-128 -fPIC -O3 -finline-functions -Wno-inline -Wall -march=native -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_DYN_LINK=1 -DNDEBUG -I../../.. -c -o stack_utils_posix.o ../src/stack_utils_posix.cpp
+
+gcc -shared -Wl,-soname,libboost_my_lib.so -o libboost_my_lib.so fcontext.o stack_allocator_posix.o stack_utils_posix.o fcontext_x86_64_sysv_elf_gas.o -lc -lstdc++
+
+gcc -g ./transfer.cpp -I../../../ -L./ -Wl,-rpath=./ -lboost_my_lib -lrt


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk