Skip to content

Commit

Permalink
Enable position independent executable.
Browse files Browse the repository at this point in the history
sapwmp.x86_64: E: non-position-independent-executable
               (Badness: 10000) /usr/lib/sapwmp/sapwmp-capture
This executable must be position independent.  Check that it is
built with -fPIE/-fpie in compiler flags and -pie in linker flags.
  • Loading branch information
nick-wang committed Mar 22, 2021
1 parent aa9ce17 commit d539375
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ AC_PROG_CC
AC_PROG_CC_C99
AC_CONFIG_FILES(Makefile)

AC_SUBST([CFLAGS], [-fPIE])
AC_SUBST([LDFLAGS], [-pie])

PKG_CHECK_MODULES(LIBSYSTEMD, [libsystemd])

AC_OUTPUT

0 comments on commit d539375

Please sign in to comment.