diff --git a/Ports/ncurses/package.sh b/Ports/ncurses/package.sh index ea6ead6e559..d0b410e7887 100755 --- a/Ports/ncurses/package.sh +++ b/Ports/ncurses/package.sh @@ -2,7 +2,7 @@ port=ncurses version=6.2 useconfigure=true -configopts="--with-termlib --enable-pc-files --with-pkg-config=/usr/local/lib/pkgconfig --with-pkg-config-libdir=/usr/local/lib/pkgconfig --without-ada --enable-sigwinch" +configopts="--with-termlib --enable-pc-files --with-pkg-config=/usr/local/lib/pkgconfig --with-pkg-config-libdir=/usr/local/lib/pkgconfig --without-ada --enable-sigwinch --with-shared" files="https://ftpmirror.gnu.org/gnu/ncurses/ncurses-${version}.tar.gz ncurses-${version}.tar.gz https://ftpmirror.gnu.org/gnu/ncurses/ncurses-${version}.tar.gz.sig ncurses-${version}.tar.gz.sig https://ftpmirror.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg" diff --git a/Ports/ncurses/patches/fix-configure.patch b/Ports/ncurses/patches/fix-configure.patch new file mode 100644 index 00000000000..dae6e21c652 --- /dev/null +++ b/Ports/ncurses/patches/fix-configure.patch @@ -0,0 +1,13 @@ +diff --git a/configure b/configure +index 06f344f3e..240cd098b 100755 +--- a/configure ++++ b/configure +@@ -5943,7 +5943,7 @@ echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6 + fi + cf_cv_rm_so_locs=yes + ;; +- (linux*|gnu*|k*bsd*-gnu) ++ (linux*|gnu*|k*bsd*-gnu|*serenity*) + if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then + LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)" + LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"