Compile C program using gcc with carried libraries

Terminé Publié le Apr 27, 2011 Paiement à la livraison
Terminé Paiement à la livraison

Background:

I am using Debian squeeze but need to run my program in another linux distribution that does not have the mudflap library installed and has a different glibc version. So I want to compile test.c in Debian squeeze and carry Debian's libraries/files (glibc, mudflap, ld, etc.) rather than use the ones installed in the other linux distribution.

Job:

Show me how to compile test.c with gcc in Debian squeeze so it is compiled in such a way that it will only use the carried libraries/files rather than the libraries/files that are installed by default in the other linux distribution.

This is what I have tried so far but does not work:

gcc -nostdlib -Wl,-dynamic-linker,/home/myuser/Desktop/ld-linux-x86-64.so.2,-rpath,/home/myuser/Desktop /home/myuser/Desktop/libc.so.6 -fmudflap /home/myuser/Desktop/libmudflap.so.0 test.c

Maybe these files have to be linked too ?

crt1.o

crti.o

crtn.o

crtbegin.o

crtend.o

libgcc_s.so.1

libc_nonshared.a

libdl.so.2

Programmer wanted:

Very good knowledge of gcc is required to successfully accomplish this job. Experience in cross-compilation may be helpful.

Environment required:

The programmer will probably have to use Debian squeeze to successfully accomplish this job. Also, the following programs will probably be needed to check if the compilation was successful:

strace

ldd

readelf

nm

Programmation C Linux Tests de Logiciels

Nº du projet : #1039245

À propos du projet

10 propositions Projet à distance Actif Apr 28, 2011

Décerné à:

PedroMC

Please check PMB. Thanks.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 0 jours
(13 Commentaires)
3.5

10 freelances font une offre moyenne de 32 $ pour ce travail

deadhunt

I can help you.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(39 Commentaires)
5.4
vili1977

I can help you.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(56 Commentaires)
5.0
navi1974

Hi! Please check your PMB.

$30 USD en 0 jours
(1 Évaluation)
4.4
nexuslite

Include Mudflap

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(6 Commentaires)
4.0
seadz

I can do this for you.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(7 Commentaires)
3.1
phankhanh

Please check your PMB.

$30 USD en 0 jours
(1 Évaluation)
2.0
shujat132

Please check pm

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
pawan2901

send the more detail

$50 USD en 2 jours
(0 Commentaires)
0.0
ferbrice

I'm C programmaer at Unix like systems, ia hava a lot experience for this job.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0