History

correct libtcc1 link order

bellard committed 22 years ago

Commit 3e74b911 parent e657dfb1 file · +3 −4Browse files

Unified · Split

tccelf.c+3−4
@@ -956,10 +956,6 @@ static void tcc_add_runtime(TCCState *s1) · 955 unmodified lines
956956 {
957957 char buf[1024];
958958
959− if (!s1->nostdlib) {
960− snprintf(buf, sizeof(buf), "%s/%s", tcc_lib_path, "libtcc1.a");
961− tcc_add_file(s1, buf);
962− }
963959 #ifdef CONFIG_TCC_BCHECK
964960 if (do_bounds_check) {
965961 unsigned long *ptr;
@@ -993,6 +989,9 @@ static void tcc_add_runtime(TCCState *s1) · 27 unmodified lines
993989 /* add libc */
994990 if (!s1->nostdlib) {
995991 tcc_add_library(s1, "c");
992+
993+ snprintf(buf, sizeof(buf), "%s/%s", tcc_lib_path, "libtcc1.a");
994+ tcc_add_file(s1, buf);
996995 }
997996 /* add crt end if not memory output */
998997 if (s1->output_type != TCC_OUTPUT_MEMORY && !s1->nostdlib) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t