forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-gfx/gtkimageview: fix build with slibtool
Thakns-to: orbea <[email protected]> Closes: https://bugs.gentoo.org/779127 Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
e202861
commit 02b5cfb
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
media-gfx/gtkimageview/files/gtkimageview-1.6.4-slibtool-undefined-references.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
https://bugs.gentoo.org/779127 | ||
|
||
commit 7f1fc516fbfb185e77b0acaab84a25b666a55e21 | ||
Author: orbea <[email protected]> | ||
Date: Mon Mar 29 11:50:45 2021 -0700 | ||
|
||
build: Fix undefined libm reference. | ||
|
||
diff --git a/configure.in b/configure.in | ||
index bd01480..63eb587 100644 | ||
--- a/configure.in | ||
+++ b/configure.in | ||
@@ -23,6 +23,9 @@ GNOME_COMPILE_WARNINGS(error) | ||
DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" | ||
AC_SUBST(DEPRECATED_FLAGS) | ||
|
||
+AC_CHECK_LIBM | ||
+AC_SUBST([LIBM]) | ||
+ | ||
PKG_CHECK_MODULES(DEP, | ||
gtk+-2.0 >= 2.6.0) | ||
AC_SUBST(DEP_CFLAGS) | ||
diff --git a/src/Makefile.am b/src/Makefile.am | ||
index 57c9f42..375dc44 100644 | ||
--- a/src/Makefile.am | ||
+++ b/src/Makefile.am | ||
@@ -41,7 +41,7 @@ libgtkimageview_la_SOURCES = \ | ||
$(BUILT_SOURCES) \ | ||
$(libgtkimageview_headers) | ||
|
||
-libgtkimageview_la_LIBADD = $(DEP_LIBS) | ||
+libgtkimageview_la_LIBADD = $(DEP_LIBS) $(LIBM) | ||
libgtkimageview_la_LDFLAGS = -no-undefined | ||
|
||
libgtkimageview_includedir = $(includedir)/gtkimageview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters