2016-01-12 08:33:01 +03:00
|
|
|
--- config/ltmain.sh
|
|
|
|
+++ config/ltmain.sh
|
|
|
|
@@ -6417,8 +6417,14 @@
|
|
|
|
func_source "$lib"
|
2016-09-28 23:25:55 +03:00
|
|
|
|
2016-01-12 08:33:01 +03:00
|
|
|
# Convert "-framework foo" to "foo.ltframework"
|
|
|
|
+ # and "-pthread" to "-Wl,-pthread" if NAG compiler
|
|
|
|
if test -n "$inherited_linker_flags"; then
|
|
|
|
- tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
|
|
|
|
+ case "$CC" in
|
2018-03-02 15:54:12 +03:00
|
|
|
+ *nagfor*)
|
2016-08-09 04:59:01 +03:00
|
|
|
+ tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g' | $SED 's/-pthread/-Wl,-pthread/g'`;;
|
2016-01-12 08:33:01 +03:00
|
|
|
+ *)
|
|
|
|
+ tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`;;
|
|
|
|
+ esac
|
|
|
|
for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
|
|
|
|
case " $new_inherited_linker_flags " in
|
|
|
|
*" $tmp_inherited_linker_flag "*) ;;
|