endrazine / wcc

The Witchcraft Compiler Collection
Other
1.84k stars 107 forks source link

added DESTDIR to Makefiles #10

Closed xorond closed 8 years ago

xorond commented 8 years ago

Adding DESTDIR gives the user ability to install/uninstall files in another chosen directory instead of the usual /usr/bin (useful for installing on chroots or while packaging for ArchLinux)

Example:

make DESTDIR=$CHROOT install

Where $CHROOT can be a pointer to any directory the user wishes to install.

endrazine commented 8 years ago

Hi xorond, cool Makefile skills ! Thanks

xorond commented 8 years ago

Also thought I'd let you know that I packaged wcc for ArchStrike :)

endrazine commented 8 years ago

Hi xorond, Epic ! Thanks :) I see you compiled for x86_64 and i386 ? Running ARM on top of qemu emulation mode is also super useful https://github.com/endrazine/wcc/wiki/wsh-with-ARM .

xorond commented 8 years ago

Yeah, had some small issues with compiling to i686, i'll have to look and fix that soon. Also, thanks for the heads up, might try compiling for ARM as well now since we also support armv6/7 :)

endrazine commented 8 years ago

Sweet, let me know if you manage to get it cross compiled. Using a chroot should be painless. This trick is amazing to run ARM binaries without a VM natively on linux. It's worth noticing that gdb/strace/ltrace will not work within qemu user mode emulation (it has no ptrace()), but wsh will !