This website requires JavaScript.
Explore
Help
Sign In
picnoir
/
Systemd
Watch
1
Star
0
Fork
You've already forked Systemd
0
Code
Issues
Pull requests
Projects
Releases
Wiki
Activity
dd6ab3df74
Systemd
/
src
/
boot
/
efi
/
no-undefined-symbols.sh
7 lines
104 B
Bash
Raw
Normal View
History
Unescape
Escape
meson: use "sh -eu" and make .sh +x, .py -x Shell scripts should be executable so that meson reports their invocation succinctly (does not print 'sh' '-e'). Python scripts should not be executable so that meson does the detection of the right python binary itself. Add -u everywhere to catch potential errors.
2017-04-18 23:14:48 +02:00
#!/bin/sh -eu
meson: add support for building efi modules This is a very straightforward conversion of the rules in Makefile.am. Generated objects (on arm64) are identical. The only difference in executed commands is that automake uses ld -m elf_x86_64, without us specifying the -m option anywhere. I suspect that using the default for the given linker should be OK, so it's fine to just skip it.
2017-04-12 21:05:55 +02:00
if
nm -D -u
"
$1
"
|
grep
' U '
;
then
echo
"Undefined symbols detected!"
exit
1
fi
Reference in a new issue
Copy permalink