Skip to content

Commit

Permalink
Update to OpenBSD 7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed Feb 17, 2025
1 parent cdcf810 commit 608332b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,6 @@ for triplet in "${targets[@]}"; do
extra_configure_flags+='--disable-lto '
fi

if [ "${triplet}" = 'hppa-unknown-openbsd' ] || [ "${triplet}" = 'alpha-unknown-openbsd' ] || [ "${triplet}" = 'x86_64-unknown-openbsd' ] || [ "${triplet}" = 'i386-unknown-openbsd' ]; then
extra_configure_flags+='--enable-libsanitizer '
fi

# The compiler for powerpc64 breaks if compiled with -Os
if [ "${triplet}" = 'powerpc64-unknown-openbsd' ]; then
optflags='-O2'
Expand All @@ -334,7 +330,6 @@ for triplet in "${targets[@]}"; do
--enable-gnu-indirect-function \
--enable-gnu-unique-object \
--enable-libstdcxx-backtrace \
--enable-plugin \
--enable-shared \
--enable-threads='posix' \
--enable-languages='c,c++' \
Expand All @@ -343,6 +338,8 @@ for triplet in "${targets[@]}"; do
--enable-standard-branch-protection \
--enable-wchar_t \
--without-headers \
--disable-plugin \
--disable-libsanitizer \
--disable-bootstrap \
--disable-libgomp \
--disable-libmudflap \
Expand All @@ -360,10 +357,10 @@ for triplet in "${targets[@]}"; do
CXXFLAGS="${optflags}"

declare CFLAGS_FOR_TARGET="${optflags} ${linkflags}"
declare CXXFLAGS_FOR_TARGET="${optflags} ${linkflags} -nostdinc++ -fpermissive"
declare CXXFLAGS_FOR_TARGET="${optflags} ${linkflags}"

LD_LIBRARY_PATH="${toolchain_directory}/lib" PATH="${PATH}:${toolchain_directory}/bin" make \
CFLAGS_FOR_TARGET="-save-temps ${CFLAGS_FOR_TARGET}" \
CFLAGS_FOR_TARGET="${CFLAGS_FOR_TARGET}" \
CXXFLAGS_FOR_TARGET="${CXXFLAGS_FOR_TARGET}" \
all --jobs="${max_jobs}"
make install
Expand Down

0 comments on commit 608332b

Please sign in to comment.