Skip to content

Commit

Permalink
Fix libsubid detection
Browse files Browse the repository at this point in the history
Library arguments must be positioned after sources when invoking GCC.

Signed-off-by: Sam Morris <[email protected]>
  • Loading branch information
yrro committed Sep 23, 2022
1 parent 0d65c24 commit 8ff54cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/libsubid_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fi
tmpdir="$PWD/tmp.$RANDOM"
mkdir -p "$tmpdir"
trap 'rm -fr "$tmpdir"' EXIT
cc -o "$tmpdir"/libsubid_tag -l subid -x c - > /dev/null 2> /dev/null << EOF
cc -o "$tmpdir"/libsubid_tag -x c - -l subid > /dev/null 2> /dev/null << EOF
#include <shadow/subid.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down

0 comments on commit 8ff54cb

Please sign in to comment.