Go to file
Yann E. MORIN 8d3e126e83 package/protobuf: needs dynamic libraries
Eventhough it should be theoretically possible to build protobuf in
static-only, configure.ac includes an m4 macro, ACX_PTHREAD defined in
m4/acx_pthread.m4, which forcibly checks for threads *with* shared libs,
and is completely broken for static-only (as it forces -shared whatever
the user selection), ending up with these configure results:

    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... yes
    checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
    checking if more special flags are required for pthreads... no
    checking whether to check for GCC pthread/shared inconsistencies... yes
    checking whether -pthread is sufficient with -shared... no
    checking whether -lpthread fixes that... no
    checking whether -lc_r fixes that... no
    configure: WARNING: Impossible to determine how to use pthreads with shared libraries
    checking whether what we have so far is sufficient with -nostdlib... no
    checking whether -lpthread saves the day... no
    configure: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib

Fixing this macro is far from trivial; protobuf in a static-only
scenario is probably not too common. So, just disable protobuf for
static-only builds.

Fixes:
    http://autobuild.buildroot.org/results/3ef/3efb86c7e8ec2db5d953d634470cafae79bd34cf/
    http://autobuild.buildroot.org/results/96a/96ae1108fc3193df2a93a779057130b774379655/
    http://autobuild.buildroot.org/results/00c/00c29795980319d38823eec1301e9ebd860ebd2a/
    ...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Nimai Mahajan <nimaim@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-08-18 21:41:12 +02:00
arch ARC: allow selection of MMU page size 2015-07-18 14:07:35 +02:00
board board: add support for ARC AXS101 and AXS103 Software Development Platforms 2015-08-04 20:05:23 +02:00
boot grub2: build El Torito image only for i386 PC platform 2015-07-29 17:03:15 +02:00
configs board: add support for ARC AXS101 and AXS103 Software Development Platforms 2015-08-04 20:05:23 +02:00
docs docs/website: add announcement e-mail link for 2015.08-rc1 2015-08-05 23:13:36 +02:00
fs fs/common: add <fs>_POST_GEN_HOOKS support 2015-08-10 20:56:05 +02:00
linux linux: bump default to version 4.1.4 2015-08-04 11:26:41 +02:00
package package/protobuf: needs dynamic libraries 2015-08-18 21:41:12 +02:00
support docs/manual: fix generation of deprecated list 2015-08-02 19:18:51 +02:00
system skeleton: New package 2015-07-14 18:08:23 +02:00
toolchain toolchain/external: ensure gcc version is known 2015-08-18 11:47:23 +02:00
.defconfig arch: kill avr32 2015-02-14 17:39:50 +01:00
.gitignore update gitignore 2013-05-04 12:41:55 +02:00
CHANGES Update for 2015.08-rc1 2015-08-05 15:50:27 +02:00
Config.in core: fix download menu 2015-07-14 09:46:51 +02:00
Config.in.legacy package/kodi-pvr-wmc: new package 2015-07-30 09:37:45 +02:00
COPYING clarify license and fix website license link 2009-05-08 09:29:41 +02:00
Makefile Update for 2015.08-rc1 2015-08-05 15:50:27 +02:00
Makefile.legacy Makefile.legacy: fix recursive invocation with BUILDROOT_DL_DIR and _CONFIG 2014-02-11 08:14:57 +01:00
README README: mention 'make list-defconfigs' 2015-04-04 15:19:43 +02:00

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on Freenode IRC.