Commit c1f7b20
Avoid need to change program.c by providing lib name. (#55)
* Avoid need to change program.c by providing name.
Changes juliac.jl to provide the name of the created shared lib
("libhello") to the c preprocessor as a macro, via "-D".
This way you do not need to modify the provided program.c when compiling
a new julia program.
Addresses issue #3.
* fix: Also use macro for libname in program2.c
* Update README to reflect macro defined libname.
Remove references from README to changing the image name manually in
`program.c`. Add note about the availability of the image lib name in
the C preprocessor macro.
* Rename lib-name macro variable; remove default val.
s/JULIA_LIB_NAME/JULIAC_JL_PROGRAM_LIBNAME/g;
Remove default value. The libname *must* be provided on the commandline
via `-DJULIAC_JL_PROGRAM_LIBNAME="libname"`.1 parent 3c0712b commit c1f7b20
4 files changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 100 | + | |
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
106 | | - | |
| 104 | + | |
107 | 105 | | |
108 | 106 | | |
109 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments