Skip to contentSkip to conversation

package/berkeleydb: fix shared-only build

PATCH New Yann E. MORIN 2 participants 2 messages Dec 12, 2014 – Dec 13, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/berkeleydb: fix shared-only build

Changeset f1d3e09 (Build shared libraries only as the default) broke the berkeleydb package.

For some reason, we had a very strange post-configure action in bdb:

        $(SED) 's/\.lo/.o/g' $(@D)/build_unix/Makefile

This means that it is using non-libtool object files. This breaks building shared-only.

This code has been present almost the whole time we've had a berkeleydb package, that is:
- November 2003: use a sed expression instead of perl
- March 2003 : use a perl program
- August 2002 : introduce berkeleydb

Getting rid of this sed expression fixes the build, and allows building the three new static/shared combinations: static only, shared only, both static and shared.

Fixes numerous build failures:

    http://autobuild.buildroot.net/results/b41/b41e13ec6c13830667770b3731f8990062f202bd/
    http://autobuild.buildroot.net/results/925/925433ef505b190aa5ac83c23e9359afe4b21829/
    http://autobuild.buildroot.net/results/9af/9afa0dd835af079411a2ea5d94e5e4db7c993111/
    ...
Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
---
 package/berkeleydb/berkeleydb.mk | 1 -
 1 file changed, 1 deletion(-)
package/berkeleydb/berkeleydb.mk +0 -1
index 452c787..30fc518 100644
@@ -41,7 +41,6 @@ define BERKELEYDB_CONFIGURE_CMDS
 		--with-pic \
 		--enable-o_direct \
 	)
-	$(SED) 's/\.lo/.o/g' $(@D)/build_unix/Makefile
 endef
 
 ifneq ($(BR2_PACKAGE_BERKELEYDB_TOOLS),y)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 package/berkeleydb: fix shared-only build

Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Changeset f1d3e09 (Build shared libraries only as the default) broke the berkeleydb package.

For some reason, we had a very strange post-configure action in bdb:

        $(SED) 's/\.lo/.o/g' $(@D)/build_unix/Makefile

This means that it is using non-libtool object files. This breaks building shared-only.

This code has been present almost the whole time we've had a berkeleydb package, that is:
- November 2003: use a sed expression instead of perl
- March 2003 : use a perl program
- August 2002 : introduce berkeleydb

Getting rid of this sed expression fixes the build, and allows building the three new static/shared combinations: static only, shared only, both static and shared.

Fixes numerous build failures:

Quoted 8 lines
    http://autobuild.buildroot.net/results/b41/b41e13ec6c13830667770b3731f8990062f202bd/
    http://autobuild.buildroot.net/results/925/925433ef505b190aa5ac83c23e9359afe4b21829/
    http://autobuild.buildroot.net/results/9af/9afa0dd835af079411a2ea5d94e5e4db7c993111/
    ...
Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard