Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On branch thirdparty-freebsd-amd64 buildtcc.sh needs a fix #30

Open
bakul opened this issue Sep 4, 2022 · 0 comments
Open

On branch thirdparty-freebsd-amd64 buildtcc.sh needs a fix #30

bakul opened this issue Sep 4, 2022 · 0 comments

Comments

@bakul
Copy link

bakul commented Sep 4, 2022

A linking failure, at least with the latest tcc (4410dbd):

cc -o tcc tcc.o libtcc.a -lm -lpthread -g
ld: error: undefined symbol: tcc_new
>>> referenced by tcc.c:283
>>>               lto.tmp:(main)

etc. The following fixes it:

diff --git a/buildtcc.sh b/buildtcc.sh
index 32faa74..81bc042 100644
--- a/buildtcc.sh
+++ b/buildtcc.sh
@@ -11,7 +11,7 @@ git clone git://repo.or.cz/tinycc.git
 cd tinycc

 export CC=cc
-export CFLAGS='-O3 -flto'
+export CFLAGS='-O3'

 ./configure \
             --prefix=thirdparty/tcc \

Ideally the script should exit 1 when any step fails rather than try to copy things in v/thirdparty/tcc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant