Skip to contentSkip to conversation

disable static libraries in Angstrom

PATCH NAK Stanislav Brabec 2 participants 5 messages Jan 10, 2010 – Jan 11, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 disable static libraries in Angstrom

Attached patch disables build of major part of static libraries in the Angstrom distribution.

Rationale:

Angstrom distribution is intended for project that are typically based on multiple packages and use of shared libraries. In such environment, static libraries are mostly only a waste of space. Disabling static libraries seems to be a smart default.

conf/distro/angstrom-2008.1.conf +3 -0
index 85d6f3f..bddedda 100644
@@ -41,6 +41,9 @@ require conf/distro/include/preferred-opie-versions-1.2.4.inc
 DISTRO_TYPE ?= "debug"
 #DISTRO_TYPE = "release"
 
+# Do not build static libraries by default.
+export enable_static = "no"
+
 # Set the toolchain type (internal, external) and brand (generic, csl etc.)
 TOOLCHAIN_TYPE ?= "internal"
 TOOLCHAIN_BRAND ?= ""

________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 2 lines · Stanislav Brabec

Attached patch disables build of major part of static libraries in the Angstrom distribution.

NAK

Quoted 4 lines

Rationale:

Angstrom distribution is intended for project that are typically based on multiple packages and use of shared libraries.

Yes, but...

Quoted 2 lines

In such environment,
static libraries are mostly only a waste of space.

Static libs are packaged in seperate packages, so they only 'waste' space on the feed server.

Quoted 1 line

Disabling static libraries seems to be a smart default.

It isn't there are a lot of people using the static libs we provide for the applications. No need to stab them in the eye.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLShYxMkyGM64RGpERAhSSAJ4/lJ0EOSLpe5YZoFBpeam6hVqc5ACfUcuA V+XGBg2Hnxl1w74iJ9Oglug=
=yY8p
-----END PGP SIGNATURE-----

#2 lore raw
Quoted 9 lines · Jan 10, 2010 19:02:25 Koen Kooi wrote:
Quoted 1 line · Stanislav Brabec

Attached patch disables build of major part of static libraries in

the

Quoted 1 line

Angstrom distribution.

NAK

Static libs are packaged in seperate packages, so they only 'waste' space on the feed server.

OK, in this case, patch 1/2 can exist standalone and people can set their local.conf as they want. Comment can be changed appropriately. Even the part in bitbake.conf may be removed (yes+yes is the default) and configuration may be completely moved to the local.conf.sample.

The primary goal of this patch is a decreasing of feed size and compilation time, which is useful especially for custom builds.

Signature · 2 lines
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I repeat: you need to discuss things like this on the angstrom-devel ml

Quoted 11 lines · Stanislav Brabec
Quoted 9 lines · Jan 10, 2010 19:02:25 Koen Kooi wrote:
Quoted 1 line · Stanislav Brabec

Attached patch disables build of major part of static libraries in

the

Quoted 1 line

Angstrom distribution.

NAK

Static libs are packaged in seperate packages, so they only 'waste' space on the feed server.

Quoted 8 lines

OK, in this case, patch 1/2 can exist standalone and people can set their local.conf as they want. Comment can be changed appropriately. Even the part in bitbake.conf may be removed (yes+yes is the default) and configuration may be completely moved to the local.conf.sample.

The primary goal of this patch is a decreasing of feed size and compilation time, which is useful especially for custom builds.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLSwcGMkyGM64RGpERAoQ8AKClJitbRzaoBdx0CblffAItrhvWbgCfbQ0S kkhQnUOhYfpx4EsZOOjP96I=
=Unc2
-----END PGP SIGNATURE-----

#4 lore raw
In reply to Stanislav Brabec

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Oh, and patches for angstrom should be discussed on the angstrom-devel ml, not here.

Quoted 27 lines · Stanislav Brabec

Attached patch disables build of major part of static libraries in the Angstrom distribution.

Rationale:

Angstrom distribution is intended for project that are typically based on multiple packages and use of shared libraries. In such environment, static libraries are mostly only a waste of space. Disabling static libraries seems to be a smart default.

conf/distro/angstrom-2008.1.conf +3 -0
index 85d6f3f..bddedda 100644
@@ -41,6 +41,9 @@ require conf/distro/include/preferred-opie-versions-1.2.4.inc
 DISTRO_TYPE ?= "debug"
 #DISTRO_TYPE = "release"
 
+# Do not build static libraries by default.
+export enable_static = "no"
+
 # Set the toolchain type (internal, external) and brand (generic, csl etc.)
 TOOLCHAIN_TYPE ?= "internal"
 TOOLCHAIN_BRAND ?= ""
Quoted 3 lines

________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLShagMkyGM64RGpERAu6jAJ4q5NF/vpB8VD0YRoODwuC6kRlaJACeOdkm UeWVOTPajY9jqIHdlLTuRbU=
=q5Lc
-----END PGP SIGNATURE-----