My favorites | Sign in
Project Home Downloads Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 8 attachment: lib3ds-2.0.0_rc1-underlinking.patch (1.5 KB)

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
49
50
51
52
53
54
55
56
commit 158cf6f8deaac69eba0c5941f809469cc3eefb43
Author: hasufell <hasufell@gentoo.org>
Date: Thu Sep 26 20:49:01 2013 +0200

fix underlinking

diff --git a/configure.in b/configure.in
index 7bf17c2..fa5bd3f 100644
--- a/configure.in
+++ b/configure.in
@@ -16,6 +16,8 @@ AM_INIT_AUTOMAKE(lib3ds, $LIB3DS_VERSION)
AC_PROG_CC
AC_PROG_LIBTOOL

+AC_CHECK_LIBM
+
AC_OUTPUT([ \
lib3ds-config \
Makefile \
diff --git a/examples/3ds2obj/Makefile.am b/examples/3ds2obj/Makefile.am
index 8213225..4214675 100644
--- a/examples/3ds2obj/Makefile.am
+++ b/examples/3ds2obj/Makefile.am
@@ -3,6 +3,6 @@ INCLUDES = -I$(top_srcdir)/src
bin_PROGRAMS = 3ds2obj
3ds2obj_SOURCES = 3ds2obj.c

-LDADD = $(top_builddir)/src/lib3ds.la
+LDADD = $(top_builddir)/src/lib3ds.la $(LIBM)

EXTRA_DIST = 3ds2obj.vcproj
diff --git a/examples/3dsdump/Makefile.am b/examples/3dsdump/Makefile.am
index 98ec5d1..ef19b04 100644
--- a/examples/3dsdump/Makefile.am
+++ b/examples/3dsdump/Makefile.am
@@ -3,6 +3,6 @@ INCLUDES = -I$(top_srcdir)/src
bin_PROGRAMS = 3dsdump
3dsdump_SOURCES = 3dsdump.c

-LDADD = $(top_builddir)/src/lib3ds.la
+LDADD = $(top_builddir)/src/lib3ds.la $(LIBM)

EXTRA_DIST = 3dsdump.vcproj
diff --git a/examples/cube/Makefile.am b/examples/cube/Makefile.am
index c79c0ee..539813d 100644
--- a/examples/cube/Makefile.am
+++ b/examples/cube/Makefile.am
@@ -3,7 +3,7 @@ INCLUDES = -I$(top_srcdir)/src
bin_PROGRAMS = cube
cube_SOURCES = cube.c

-LDADD = $(top_builddir)/src/lib3ds.la
+LDADD = $(top_builddir)/src/lib3ds.la $(LIBM)

EXTRA_DIST = cube.vcproj cube.tga

Powered by Google Project Hosting