libpreludedb/libpreludedb-5.2.0-Clean_libpreludedb-config.patch

51 lines
1.1 KiB
Diff
Raw Permalink Normal View History

2020-09-20 21:54:36 +00:00
Description: Clean libpreludedb-config
Author: Thomas Andrejak <thomas.andrejak@gmail.com>
Last-Update: 2020-09-20
--- a/libpreludedb-config.in 2020-09-09 16:36:50.110000000 +0200
+++ b/libpreludedb-config.in 2020-09-20 23:30:02.097649400 +0200
@@ -3,6 +3,7 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
+cpp_set=no
want_cflags=no
want_libs=no
thread_set=no
@@ -54,6 +55,10 @@
echo @LIBPRELUDE_LDFLAGS@
;;
+ --c++)
+ cpp_set=yes
+ ;;
+
--libs)
want_libs=yes
;;
2020-09-21 09:10:50 +00:00
@@ -90,7 +95,14 @@
2020-09-20 21:54:36 +00:00
if test $want_libs = yes; then
- libdirs=-L@libdir@
+ libdirs=
+ if test @libdir@ != /usr/lib -a @libdir@ != /usr/lib64 ; then
+ libdirs=-L@libdir@
+ fi
+ cpplibs=""
+ if test $cpp_set = yes; then
+ cpplibs="-lpreludedbcpp"
+ fi
if test $thread_set = yes; then
thrlibs=@LTLIBMULTITHREAD@
@@ -98,7 +110,7 @@
thrlibs=@LTLIBTHREAD@
fi
- echo $libdirs -lpreludedb @LIBPRELUDE_LIBS@ $thrlibs
+ echo $cpplibs $libdirs -lpreludedb $thrlibs
fi
exit 0