pkg-config

Chris Johns chrisj at rtems.org
Mon Jan 20 23:57:50 UTC 2020


On 29/11/19 12:48 am, Sebastian Huber wrote:
> 
> we should think about what variables should be exposed by the pkg-config file.

There is a basic set we need then we can add more and directly reference them as
variables. I think clean variable naming where we can define some form of
namespace would help, eg score_smp=1, bsp_mmu_special_mode=1

> Currently, it contains a lot of things, e.g. warning and optimization flags.

Warnings need to be stripped. Anything that effects the ABI, linking etc needs
to be included.

> The seem to be necessary for the libbsd:
> 
> /build/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
> ./libbsd.a(uipc_mbuf.c.24.o): in function `m_unmappedtouio':
> /scratch/git-rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-everything/../../freebsd/sys/kern/uipc_mbuf.c:1813:
> undefined reference to `PHYS_TO_VM_PAGE'
> /build/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
> /scratch/git-rtems-libbsd/build/arm-rtems5-xilinx_zynq_a9_qemu-everything/../../freebsd/sys/kern/uipc_mbuf.c:1814:
> undefined reference to `uiomove_fromphys'
> 
> Without the -Wl,--gc-sections the libbsd link fails.

Getting this right is tricky.

Chris


More information about the devel mailing list