Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37736272
en ru br
ALT Linux repos
S:0.31.0-alt2
5.0: 0.22.0-alt1
4.1: 0.22.0-alt0.1
4.0: 0.22.0-alt0.1
3.0: 0.21.2-alt0.2

Group :: Monitoring
RPM: gpsim

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0002-libgpsim-fix-libdl-linking.patch
Download


From d284dd02dcfabd0c21b8eb8bd351735270a517de Mon Sep 17 00:00:00 2001
From: Vitaly Lipatov <lav@etersoft.ru>
Date: Sat, 2 Oct 2010 17:06:27 +0400
Subject: [PATCH 2/3] libgpsim: fix libdl linking
---
 gpsim/configure.ac    |    2 ++
 gpsim/src/Makefile.am |    6 +-----
 2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/gpsim/configure.ac b/gpsim/configure.ac
index 4881d5a..0ccba05 100644
--- a/gpsim/configure.ac
+++ b/gpsim/configure.ac
@@ -116,6 +116,7 @@ AC_LANG([C++])
 AC_CHECK_LIB([popt], [main])
 #AC_CHECK_LIB([pthread], [main])
 
+AC_SEARCH_LIBS([dlopen], [dl dld])
 
 # Checks for header files.
 AC_HEADER_STDC
@@ -188,6 +189,7 @@ AC_SUBST(X_LDFLAGS)
 AC_SUBST(GTK)
 AC_SUBST(GDK)
 AC_SUBST(GLIB)
+AC_SUBST(LIBS)
 AC_SUBST(LIBREADLINE)
 
 AC_CONFIG_FILES([Makefile
diff --git a/gpsim/src/Makefile.am b/gpsim/src/Makefile.am
index 1e4b998..3d7d675 100755
--- a/gpsim/src/Makefile.am
+++ b/gpsim/src/Makefile.am
@@ -171,11 +171,7 @@ gpsiminclude_HEADERS = \
 	value.h \
 	ValueCollections.h
 
-
-
-#libgpsim_la_LDFLAGS = $(shell gtk-config --libs)
-libgpsim_la_LIBADD =  @X_LDFLAGS@
-libgpsim_la_LDFLAGS = -lpthread
+libgpsim_la_LIBADD = @X_LDFLAGS@ @LIBS@
 
 SUBDIRS = dspic
 
-- 
1.7.2.3
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin