Issue 90 in ctemplate: shared libraries (.dll) are not built in MinGW

15 views
Skip to first unread message

ctem...@googlecode.com

unread,
May 20, 2012, 2:55:21 AM5/20/12
to google-c...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 90 by shat...@gmail.com: shared libraries (.dll) are not built in
MinGW
http://code.google.com/p/ctemplate/issues/detail?id=90

What steps will reproduce the problem?
1. Under MinGW, untar ctemplate and run ./configure
2. make && make install
3. Observe that there's no libctemplate*.dll files installed.

What is the expected output? What do you see instead?

.dll libraries should be built and installed

What version of the product are you using? On what operating system?

ctemplate-2.2

Please provide any additional information below.

libtool doesn't build shared libraries for Windows when -no-undefined
option is not specified. The solution is to add -no-undefined to *_LDFLAGS
variables for libraries in Makefile.am. With the attached patch, dll libs
are built just fine in MinGW.

Attachments:
ctemplate-dll.patch 2.2 KB

ctem...@googlecode.com

unread,
May 20, 2012, 12:57:02 PM5/20/12
to google-c...@googlegroups.com

Comment #1 on issue 90 by olafv...@gmail.com: shared libraries (.dll) are
Why does MinGW require -no-undefined?

ctem...@googlecode.com

unread,
May 20, 2012, 4:26:45 PM5/20/12
to google-c...@googlegroups.com

Comment #2 on issue 90 by shat...@gmail.com: shared libraries (.dll) are
libtool required that on Windows. That's because windows DLLs cannot have
undefined symbols. Requiring -no-undefined option for building DLLs is a
design decision made by libtool developers. Without -no-undefined, libtool
silently skips building DLLs and builds only static libs.

According to libtool docs, there's one more requirement for building DLLs:
AC_LIBTOOL_WIN32_DLL macro should be added to configure.ac before
AM_PROG_LIBTOOL. AC_LIBTOOL_WIN32_DLL doesn't seem to have any effect in my
setup, though. If you want to build DLLs in a compliant way, add that one
as well.

ctem...@googlecode.com

unread,
May 21, 2012, 6:13:12 PM5/21/12
to google-c...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 90 by olafv...@gmail.com: shared libraries (.dll) are
Fixed in r130

Reply all
Reply to author
Forward
0 new messages