Make examples' shebang use target tcc bindir path
Use @BINDIR@ in shebang of examples to put the right path on the target system. That is, use #!/usr/local/bin/tcc if tcc is installed in /usr/local/bin and #!/usr/bin/tcc if tcc is installed in /usr/bin/tcc.
This commit is contained in:
2
examples/ex1.c → examples/ex1.c.template
Executable file → Normal file
2
examples/ex1.c → examples/ex1.c.template
Executable file → Normal file
@ -1,4 +1,4 @@
|
||||
#! /usr/local/bin/tcc -run
|
||||
#! @BINDIR@/tcc -run
|
||||
#include <tcclib.h>
|
||||
|
||||
int main()
|
||||
2
examples/ex4.c → examples/ex4.c.template
Executable file → Normal file
2
examples/ex4.c → examples/ex4.c.template
Executable file → Normal file
@ -1,4 +1,4 @@
|
||||
#!./tcc -run -L/usr/X11R6/lib -lX11
|
||||
#! @BINDIR@/tcc -run -L/usr/X11R6/lib -lX11
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <X11/Xlib.h>
|
||||
Reference in New Issue
Block a user