summaryrefslogtreecommitdiff
blob: bec3cc9bb484e7e4142946b9820446abda775daa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
https://bugs.gentoo.org/779040

commit a1e784de2edc4784c440246998fb8ad28065cc39
Author: orbea <orbea@riseup.net>
Date:   Tue Mar 30 07:34:15 2021 -0700

    build: Fix the build with -no-undefined.

--- a/src/allegro/Makefile.am
+++ b/src/allegro/Makefile.am
@@ -3,6 +3,7 @@ lib_LTLIBRARIES = libguichan_allegro.la
 INCLUDES = -I$(top_srcdir)/include
 
 libguichan_allegro_la_LDFLAGS = -no-undefined -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+libguichan_allegro_la_LIBADD = $(top_srcdir)/src/libguichan.la -lalleg
 
 libguichan_allegro_la_SOURCES =		\
 		allegro.cpp		\
@@ -10,4 +11,4 @@ libguichan_allegro_la_SOURCES =		\
 		allegrographics.cpp	\
 		allegroimage.cpp	\
 		allegroimageloader.cpp	\
-		allegroinput.cpp
\ No newline at end of file
+		allegroinput.cpp
--- a/src/opengl/Makefile.am
+++ b/src/opengl/Makefile.am
@@ -3,6 +3,7 @@ lib_LTLIBRARIES = libguichan_opengl.la
 INCLUDES = -I$(top_srcdir)/include
 
 libguichan_opengl_la_LDFLAGS = -no-undefined -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) 
+libguichan_opengl_la_LIBADD = $(top_srcdir)/src/libguichan.la -lGL
 
 libguichan_opengl_la_SOURCES =	\
 	opengl.cpp		\
diff --git a/src/sdl/Makefile.am b/src/sdl/Makefile.am
index 61b3d50..728ca3c 100644
--- a/src/sdl/Makefile.am
+++ b/src/sdl/Makefile.am
@@ -6,7 +6,7 @@ INCLUDES = -I$(top_srcdir)/include
 
 libguichan_sdl_la_LDFLAGS = -no-undefined -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 
-libguichan_sdl_la_LIBADD = -lSDL_image -L$(top_srcdir)/src -lguichan
+libguichan_sdl_la_LIBADD = $(top_srcdir)/src/libguichan.la -lSDL -lSDL_image
 
 libguichan_sdl_la_SOURCES =	\
 	sdl.cpp			\