mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-16 18:21:41 +01:00
Compile an L-file only if UNW_LOCAL_ONLY surives past the include of <libunwind.h>.
(Logical change 1.75)
This commit is contained in:
parent
8d057cb800
commit
50e11fa8b2
1 changed files with 8 additions and 3 deletions
|
@ -1,7 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
for gname in G*.c G*.cxx; do
|
for gname in `ls G*.c G*.cxx 2>/dev/null`; do
|
||||||
lname="L$(expr $gname : '.\(.*\)')"
|
lname="L$(expr $gname : '.\(.*\)')"
|
||||||
bk edit $lname >/dev/null 2>&1
|
bk edit $lname >/dev/null 2>&1
|
||||||
echo -e "#ifndef UNW_REMOTE_ONLY\n#define UNW_LOCAL_ONLY\n\
|
echo -e "\
|
||||||
#include \"$gname\"\n#endif" > $lname
|
#define UNW_LOCAL_ONLY\n\
|
||||||
|
#include <libunwind.h>\n\
|
||||||
|
#if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY)\n\
|
||||||
|
#include \"$gname\"\n\
|
||||||
|
#endif" > $lname
|
||||||
|
echo created $lname
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue