[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:43:12 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=2277b07

The following commit has been merged in the master branch:
commit 2277b076a72cbbbd43d77e830ae30b370dc9af3a
Author: Robin Mills <robin at clanmills.com>
Date:   Tue Jul 10 01:10:24 2012 +0000

    fix version.cpp to compile, link and run on linux
---
 config/config.mk.in | 2 +-
 src/version.cpp     | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/config/config.mk.in b/config/config.mk.in
index e36a147..a19b785 100644
--- a/config/config.mk.in
+++ b/config/config.mk.in
@@ -153,7 +153,7 @@ COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
 COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c
 # LINK.cc does not need $(LIBS), libtool's dark magic takes care of that
 # when linking a binary with a libtool library.
-LINK.cc = $(CXX) $(LDFLAGS)
+LINK.cc = $(CXX) $(LDFLAGS) -ldl
 
 # **********************************************************************
 # Installation programs
diff --git a/src/version.cpp b/src/version.cpp
index e87d095..7d693d1 100644
--- a/src/version.cpp
+++ b/src/version.cpp
@@ -68,6 +68,7 @@ namespace Exiv2 {
 }                                       // namespace Exiv2
 
 
+#include <stdio.h>
 
 // platform specific support for dumpLibraryInfo
 #ifdef  WIN32
@@ -85,7 +86,7 @@ namespace Exiv2 {
 #elif   __APPLE__
 # include <mach-o/dyld.h>
 
-#else   __LINUX__
+#else   __linux__
 // http://syprog.blogspot.com/2011/12/listing-loaded-shared-objects-in-linux.html
 # include "link.h"
 # include <dlfcn.h>
@@ -162,7 +163,7 @@ EXIV2API void dumpLibraryInfo(std::ostream& os)
 	     }
 	}
 
-#elif __LINUX__
+#elif __linux__
 	bReport = true;
 	// http://syprog.blogspot.com/2011/12/listing-loaded-shared-objects-in-linux.html
 	struct lmap* pl;

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list