Add missing patch
This commit is contained in:
parent
9c7152a4d2
commit
6232a23a5b
50
libpreludedb-5.2.0-Clean_libpreludedb-config.patch
Normal file
50
libpreludedb-5.2.0-Clean_libpreludedb-config.patch
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
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
|
||||||
|
;;
|
||||||
|
@@ -90,7 +95,14 @@
|
||||||
|
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user