Skip to contentSkip to conversation

Fix build of shared libraries

PATCH New Luca Ceresoli 2 participants 4 messages Jun 20, 2011 – Jun 21, 2011

lore
Share & tools
lore
#0 lore raw

cover Fix build of shared libraries

Hi,

009d8fceab4 and 0a5e5534cbf8 broke shared library building for those AUTOTOOLS packaged that override _CONFIGURE_CMDS.

According to my grep'ing, the affetced packages should be only ffmpeg and berkeleydb. These two patched fixes them.

Please note I only could test ffmpeg, but the change is pretty trivial so hopefully it works for berkeleydb as well.

Luca

Luca Ceresoli (2):
ffmpeg: fix build of shared libraries
berkeleydb: fix build of shared libraries

 package/berkeleydb/berkeleydb.mk    |    1 +
 package/multimedia/ffmpeg/ffmpeg.mk |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/2 ffmpeg: fix build of shared libraries

009d8fceab4 and 0a5e5534cbf8 moved the --enable-static configure flag from package files to the default _CONFIGURE_CMDS in package/Makefile.autotools.in.
This broke Autotools packages that override _CONFIGURE_CMDS.

---
 package/multimedia/ffmpeg/ffmpeg.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
package/multimedia/ffmpeg/ffmpeg.mk +1 -0
index babb16a..b50503b 100644
@@ -167,6 +167,7 @@ define FFMPEG_CONFIGURE_CMDS
 		--arch=$(BR2_ARCH) \
 		--target-os=linux \
 		--extra-cflags=-fPIC \
+		$(SHARED_STATIC_LIBS_OPTS) \
 		$(FFMPEG_CONF_OPT) \
 	)
 endef
Signature · 1 line
1.7.4.1
#2 lore raw

PATCH 2/2 berkeleydb: fix build of shared libraries

In reply to Luca Ceresoli

009d8fceab4 and 0a5e5534cbf8 moved the --enable-static configure flag from package files to the default _CONFIGURE_CMDS in package/Makefile.autotools.in.
This broke Autotools packages that override _CONFIGURE_CMDS.

---
 package/berkeleydb/berkeleydb.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
package/berkeleydb/berkeleydb.mk +1 -0
index 1bac745..e80f66f 100644
@@ -38,6 +38,7 @@ define BERKELEYDB_CONFIGURE_CMDS
 		--disable-rpc \
 		--disable-tcl \
 		--disable-compat185 \
+		$(SHARED_STATIC_LIBS_OPTS) \
 		--with-pic \
 	)
 	$(SED) 's/\.lo/.o/g' $(@D)/build_unix/Makefile
Signature · 1 line
1.7.4.1
#3 lore raw

cover Fix build of shared libraries

In reply to Luca Ceresoli
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Luca" == Luca Ceresoli <[email protected]> writes:

Luca> Hi,

Luca> 009d8fceab4 and 0a5e5534cbf8 broke shared library building for Luca> those AUTOTOOLS packaged that override _CONFIGURE_CMDS.

Luca> According to my grep'ing, the affetced packages should be only ffmpeg and Luca> berkeleydb. These two patched fixes them.

Luca> Please note I only could test ffmpeg, but the change is pretty trivial so Luca> hopefully it works for berkeleydb as well.

Good catch - Committed both, thanks!

Signature · 1 line
Bye, Peter Korsgaard