Đang Thực Hiện

Compile C program using gcc with carried libraries

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

Kỹ năng: Lập trình C, Linux, Kiểm tra phần mềm

Xem thêm: what is dynamic programming, what is a library in programming, what does a background check show, wanted programmer job, wanted c programmer, programming libraries, programmer need programs, job background check, how does programming work, dynamic programming in c, dynamic c programming, c with, c++ programming test, C Programming Linux, c programming environment, c# programmer wanted, c programmer wanted, debian squeeze gcc, compile program using gcc, compile mudflap, compile files, c programming test, x86, wl, my c

Về Bên Thuê:
( 5 nhận xét ) madrid, Spain

Mã Dự Án: #1039245

Đã trao cho:

PedroMC

Please check PMB. Thanks.

$30 USD trong 0 ngày
(13 Đánh Giá)
3.5

10 freelancer đang chào giá trung bình $32 cho công việc này

deadhunt

I can help you.

$30 USD trong 1 ngày
(39 Đánh Giá)
5.4
vili1977

I can help you.

$30 USD trong 1 ngày
(56 Đánh Giá)
5.0
navi1974

Hi! Please check your PMB.

$30 USD trong 0 ngày
(1 Đánh Giá)
4.4
nexuslite

Include Mudflap

$30 USD trong 1 ngày
(6 Đánh Giá)
4.0
seadz

I can do this for you.

$30 USD trong 1 ngày
(7 Đánh Giá)
3.1
phankhanh

Please check your PMB.

$30 USD trong 0 ngày
(1 Đánh Giá)
2.0
shujat132

Please check pm

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0
pawan2901

send the more detail

$50 USD trong 2 ngày
(0 Đánh Giá)
0.0
ferbrice

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

$30 USD trong 1 ngày
(0 Đánh Giá)
0.0