[OSy] static lib
Michal Švirec
svirooo at gmail.com
Sun Jan 17 16:17:28 CET 2010
Dobry den,
ja by som sa chcel opytat, ako vyrobit staticku kniznicu. Ked
skompilujem nejaky zdrojak s rovnakymi parametrami, ako sa kompiluje
kernel (maju byt rovnake?) a potom sa snazim pouzit ar, tak dostavam:
/usr/local/cross/mips32/bin/mipsel-linux-gnu-gcc -O2
-fno-optimize-sibling-calls -march=r4000 -mabi=32 -mgp32 -msoft-float
-mlong32 -G 0 -mno-abicalls -fno-pic -fno-builtin -ffreestanding
-nostdlib -nostdinc -pipe -Wall -Wextra -Werror -Wno-unused-parameter
-Wmissing-prototypes -g3 -std=gnu99 -I. -c
-o ../user/syscalls/syscall.o ../user/syscalls/syscall.c
/usr/local/cross/mips32/bin/mipsel-linux-gnu-ar rcsv syscalls/syscall.o
librt.a
/usr/local/cross/mips32/bin/mipsel-linux-gnu-ar: syscalls/syscall.o:
File format not recognized
Nieco mi unika?
More information about the NSWI004
mailing list