From 6026d6149088809c41bac1702a96d739c80a9564 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Wed, 17 May 2017 17:57:23 +0200
Subject: fix -nostart issue for gcc5


diff --git a/configure b/configure
index 1a16abd..c7da732 100755
--- a/configure
+++ b/configure
@@ -6075,6 +6075,11 @@ fi
         SHARED_LD_CXX="${LD} -nostart -o"
       ;;
 
+      *-*-haiku* )
+                        SHARED_LD_CC="${CC} -shared -o"
+        SHARED_LD_CXX="${CXX} -shared -o"
+      ;;
+
       *-*-irix* )
                 if test "x$GCC" != "xyes"; then
             PIC_FLAG="-KPIC"
-- 
2.7.0

