[Users] [Bug 3673] Be more friendly instead of "configure: error: 'encrypt'-function not found."

Perry E. Metzger perry at piermont.com
Fri Jan 13 22:19:19 CET 2017


On Fri, 13 Jan 2017 20:03:04 +0100 Andrej Kacian <andrej at kacian.sk>
wrote:
> Looks like the recent patch from bug 3665, which was supposed to fix
> building on OS X broke your Macports build, as it changed LDFLAGS to
> use -export-dynamic, instead of --export-dynamic (one leading dash
> instead of two).
> (http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3665)

So that's quite weird, because the native Mac ld uses one dash, but
an _underscore_ in the option name: -export_dynamic. The patch was
wrong -- the change was needed but it was not quite right. Not sure
how this ended up in the tree!

Fixing this fixed everything. The correct patch is this, and please
apply it to the trunk for 3.14.2 or whatever:

--- configure.ac.~1~	2016-11-06 07:01:27.000000000 -0500
+++ configure.ac	2017-01-13 16:12:50.000000000 -0500
@@ -118,7 +118,7 @@
     ;;
 	*-apple-*)
 		platform_osx=yes
-		LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
+		LDFLAGS="$LDFLAGS -Wl,-export_dynamic"
 		;;
   *)
     platform_win32=no

Note what you suggested doesn't work:

> --- a/configure.ac
> +++ b/configure.ac
> @@ -118,7 +118,7 @@ case "$host" in
>      ;;
>         *-apple-*)
>                 platform_osx=yes
> -               LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
> +               LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
>                 ;;
>    *)
>      platform_win32=no

Perry
-- 
Perry E. Metzger		perry at piermont.com



More information about the Users mailing list