forked from pool/hardinfo
- Add hardinfo-dyamic-libsoup.patch: Do not link libsoup statically. OBS-URL: https://build.opensuse.org/request/show/930476 OBS-URL: https://build.opensuse.org/package/show/utilities/hardinfo?expand=0&rev=15
25 lines
983 B
Diff
25 lines
983 B
Diff
Index: hardinfo-0.5.1/configure
|
|
===================================================================
|
|
--- hardinfo-0.5.1.orig/configure
|
|
+++ hardinfo-0.5.1/configure
|
|
@@ -142,8 +142,8 @@ for i in `which pkg-config`; do
|
|
--atleast-version=$MIN_VERSION > /dev/null
|
|
case $? in
|
|
0)
|
|
- SOUP_FLAGS=`pkg-config libsoup-2.4 --cflags --static`
|
|
- SOUP_LIBS=`pkg-config libsoup-2.4 --libs --static`
|
|
+ SOUP_FLAGS=`pkg-config libsoup-2.4 gmodule-2.0 --cflags`
|
|
+ SOUP_LIBS=`pkg-config libsoup-2.4 gmodule-2.0 --libs`
|
|
echo "found `pkg-config libsoup-2.4 --modversion`"
|
|
SOUP=1
|
|
break ;;
|
|
@@ -222,7 +222,7 @@ echo -e "\n#endif /* __CONFIG_H__ */" >>
|
|
echo "Writing Makefile..."
|
|
rm -f Makefile
|
|
|
|
-echo "GTK_LIBS = -lpthread -lgthread-2.0 -lrt ${GTK_LIBS}" > Makefile
|
|
+echo "GTK_LIBS = -lpthread -lgthread-2.0 -lrt -lm ${GTK_LIBS}" > Makefile
|
|
echo "GTK_CFLAGS = ${GTK_FLAGS}" >> Makefile
|
|
echo "SOUP_LIBS = ${SOUP_LIBS}" >> Makefile
|
|
echo "SOUP_CFLAGS = ${SOUP_FLAGS}" >> Makefile
|