On Wed, Mar 10, 2010 at 1:19 AM, Mitani <[email protected]> wrote:
> Hi,
>
>
> I tried to build LTP modules from following git:
>
...

> How about changing Makefile as follows?
>
> ============
> --- ./testcases/kernel/containers/Makefile      2010-03-10
> 01:23:25.000000000 +0900
> +++ ./testcases/kernel/containers/Makefile.new  2010-03-10
> 15:27:20.000000000 +0900
> @@ -28,6 +28,8 @@
>
>  LIB                    := -ld
>
> +CFLAGS                  += -ldl
> +
>  INSTALL_TARGETS                := *.sh

    I realize that this has already been resolved, but just to make
sure we're all clear LDLIBS should contain -l arguments, LDFLAGS
should contain all non- -l arguments which get passed to ld(1),
CPPFLAGS should contain all items which need to get passed to cpp(1)
and cc(1), and CFLAGS should contain everything that needs to go
strictly to cc(1).
    So... -l arguments should _NEVER_ be put in CFLAGS.
Thanks,
-Garrett

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to