summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2012-04-02 15:11:46 -0400
committerPaul Moore <pmoore@redhat.com>2012-04-02 15:11:46 -0400
commit50ba41dbc4ea30ca8aa2a02c0cfe8a4c4d9024a8 (patch)
tree97ceab23de702152579512a99679d0564d8a76d7 /tools
parent0b8e74f9ebb67892b5f56f8fb53cc33b5b2b118a (diff)
downloadlibseccomp-50ba41dbc4ea30ca8aa2a02c0cfe8a4c4d9024a8.tar.gz
tools: use $CFLAGS in sys_resolver
Ensures that if we specify "-m32" in $CFLAGS we use the right syscall table in the resolver script. Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/sys_resolver2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sys_resolver b/tools/sys_resolver
index 5aaaf3c..a80f0a4 100755
--- a/tools/sys_resolver
+++ b/tools/sys_resolver
@@ -49,7 +49,7 @@ if [[ "$#" -ne 1 || -z "$1" ]]; then
fi
# inspect the syscall header file and do the resolution
-sys_def="$(gcc -E -dM "$syscall_h" | grep " __NR_$1 ")"
+sys_def="$(gcc $CFLAGS -E -dM "$syscall_h" | grep " __NR_$1 ")"
if [[ -n "$sys_def" ]]; then
echo "$sys_def" | awk '{ print $3 }'
else