History

make --enable-cross work properly on x86_64 merge more changes from Fedora spec file into Makefile I did a lot of reading on Makefiles. It should be a lot less hacked now that I got rid of my temporary cross-build script. I had to build i386-win32-tcc as 32 bit in order to use it to build the windows version of libtcc1.a and move that into lib directory. Still testing, but it does build windows fib.exe smoothly now and generates shard lib, libtcc.so.1.0 and test links against it.

Henry Kroll III committed 16 years ago

Commit 07eb8501 parent 1a8e7d91 file · +8 −3Browse files

Unified · Split

Makefile+8−3
@@ -183,15 +183,20 @@ libtcc_test$(EXESUF): tests/libtcc_test.c $(LIBTCCB) · 182 unmodified lines
183183 $(CC) -o $@ $^ -I. $(CFLAGS) $(LIBS) $(LIBTCCL)
184184 ifdef CONFIG_CROSS
185185 ifndef CONFIG_WIN32
186+ cp config.mak config.mak.bak
187+ cp config.h config.h.bak
186188 echo "ARCH=i386" >> config.mak
187− make i386-win32-tcc
189+ echo "#undef HOST_X86_64" >> config.h
190+ echo "#define HOST_I386 1" >> config.h
191+ echo "CFLAGS=-O2 -g -pipe -Wall -m32" >> config.mak
192+ make i386-win32-tcc
188193 cp i386-win32-tcc tcc.exe
189194 mv libtcc1.a libtcc1.bak
190195 make CONFIG_WIN32=1 libtcc1.a
191196 mv libtcc1.a lib
192197 mv libtcc1.bak libtcc1.a
193− head -n -1 config.mak > config.bak
194− mv config.bak config.mak
198+ mv config.mak.bak config.mak
199+ mv config.h.bak config.h
195200 endif
196201 endif
197202

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