Skip to content

Commit

Permalink
aarch64: fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hadfl committed Oct 3, 2024
1 parent 3bb94c7 commit b2356b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/glib/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ CFLAGS+=" -Wno-error=format-nonliteral -Wno-error=format=2"
# See comment in /usr/include/pwd.h
set_standard XPG6

CFLAGS[aarch64]+=" -mtls-dialect=trad"
LDFLAGS+=" -Wl,-z,ignore"
LDFLAGS[i386]+=" -lssp_ns"

Expand Down
2 changes: 2 additions & 0 deletions build/libpcap/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ CONFIGURE_OPTS="
--mandir=/usr/share/man
--with-pcap=dlpi
"

CFLAGS[aarch64]+=" -mtls-dialect=trad"
LDFLAGS+=" $SSPFLAGS"

build_init() {
Expand Down
6 changes: 6 additions & 0 deletions build/sudo/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ CONFIGURE_OPTS="
CONFIGURE_OPTS[amd64]+="
--libexecdir=/usr/lib/$PROG/amd64
"
# for cross-builds this is detected as 'cross' which leads to sudo
# using its own implementation; however, the build fails to make
# the symbols global which breaks linking
CONFIGURE_OPTS[aarch64]+="
ac_cv_have_working_vsnprintf=yes
"

SKIP_LICENCES=Various
TESTSUITE_SED="
Expand Down

0 comments on commit b2356b4

Please sign in to comment.