Date: Sun, 4 Jan 2015 16:55:15 +0100 From: "no@spam@mgEDV.net" <nospam@mgedv.net> To: <ports@freebsd.org> Cc: nsayer@FreeBSD.org, nmav@hellug.gr Subject: libmcrypt: configure fails for shared lib on freebsd 10.x [patch] Message-ID: <000001d02836$d4b45f00$7e1d1d00$@mgedv.net>
next in thread | raw e-mail | index | archive | help
hi, i'm kinda rookie, but there's a bug in the libmcrypt configure script, that causes the libmcrypt shared library to never get built on freebsd 10.x. the script checks for freebsd1* (no shared lib support), which unfortunately matches freebsd10* as well. i had NO smart idea, of how to make this check more efficient without rewriting almost the whole configure script. therefore i simply commented out the freebsd1* sections, which seem very outdated for me anyways. (dunno if somebody still builds libmcrypt on freebsd-1.x?) the "comment it out" patch for this is as follows: --- configure.orig 2007-02-19 07:32:39.000000000 +0100 +++ configure 2015-01-04 16:42:38.000000000 +0100 @@ -12261,9 +12261,9 @@ hardcode_shlibpath_var=no ;; - freebsd1*) - ld_shlibs=no - ;; + #freebsd1*) + # ld_shlibs=no + # ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o @@ -12873,9 +12873,9 @@ shlibpath_var=LD_LIBRARY_PATH ;; -freebsd1*) - dynamic_linker=no - ;; +#freebsd1*) +# dynamic_linker=no +# ;; kfreebsd*-gnu) version_type=linux @@ -16853,9 +16853,9 @@ shlibpath_var=LD_LIBRARY_PATH ;; -freebsd1*) - dynamic_linker=no - ;; +#freebsd1*) +# dynamic_linker=no +# ;; kfreebsd*-gnu) version_type=linux @@ -18852,9 +18852,9 @@ hardcode_shlibpath_var_F77=no ;; - freebsd1*) - ld_shlibs_F77=no - ;; + #freebsd1*) + # ld_shlibs_F77=no + # ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o @@ -19464,9 +19464,9 @@ shlibpath_var=LD_LIBRARY_PATH ;; -freebsd1*) - dynamic_linker=no - ;; +#freebsd1*) +# dynamic_linker=no +# ;; kfreebsd*-gnu) version_type=linux @@ -21471,9 +21471,9 @@ hardcode_shlibpath_var_GCJ=no ;; - freebsd1*) - ld_shlibs_GCJ=no - ;; + #freebsd1*) + # ld_shlibs_GCJ=no + # ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o @@ -22083,9 +22083,9 @@ shlibpath_var=LD_LIBRARY_PATH ;; -freebsd1*) - dynamic_linker=no - ;; +#freebsd1*) +# dynamic_linker=no +# ;; kfreebsd*-gnu) version_type=linux successfully built the .so with this patch. cheers.m
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001d02836$d4b45f00$7e1d1d00$>