Skip to content

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

@bakul

Description

@bakul

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions