[Buildroot] [PATCH] [autobuild] package/oprofile: fix static linking

Baruch Siach baruch at tkos.co.il
Sun Aug 16 13:43:25 UTC 2015


Hi Yann,

On Sun, Aug 16, 2015 at 03:37:29PM +0200, Yann E. MORIN wrote:
> +# popt links with -lintl and specifies it in its popt.pc, and has done
> +# so for the past 6+ years, but oprofile does not use pkconfig to find
> +# popt, so we need to tell it to link with -lintl for a static build.
> +ifeq ($(BR2_PACKAGE_GETTEXT)$(BR2_STATIC_LIBS),yy)
> +OPROFILE_CONF_OPTS += LIBS=-lintl
> +endif

Why not run $(PKG_CONFIG_HOST_BINARY) directly like we do in 
package/logrotate/logrotate.mk for popt?

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


More information about the buildroot mailing list