Le mercredi 25 mars 2015, 19:55:46 Sergey Korshunoff a écrit : > Hi! Is there a way to add a file from a library like: > tcc_add_support(s1, "libtcc1.a(bcheck.o)"); > > There was a code in the old tccelf.c (0.9.22) which then removed: > snprintf(buf, sizeof(buf), "%s/%s", tcc_lib_path, "bcheck.o"); > tcc_add_file(s1, buf); > > Currently we install only a libtcc1.a. There is no bcheck.o > Question: how to force a bcheck.o linking?
bcheck.o is part of libtcc1.a. See lib/Makefile:
BCHECK_O = bcheck.o
(…)
I386_O = libtcc1.o alloca86.o alloca86-bt.o $(BCHECK_O)
X86_64_O = libtcc1.o alloca86_64.o alloca86_64-bt.o $(BCHECK_O)
(…)
ifeq "$(TARGET)" "i386"
OBJ = $(addprefix $(DIR)/,$(I386_O))
(…)
ifeq "$(TARGET)" "x86_64"
OBJ = $(addprefix $(DIR)/,$(X86_64_O))
(…)
$(DIR)/libtcc1.a ../libtcc1.a : $(OBJ) $(XAR)
$(XAR) rcs $@ $(OBJ)
Best regards,
Thomas
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
