RE: wip/kegs

"Larson, Timothy E." <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.wip.review
Message-ID <226316B3E1F749498E28ACA66321D5BA4A7A1AEE@oma00cexmbx03.corp.westworlds.com>
> > As this is a linker flag it seems to me that this is something I can
> add to LDFLAGS.  But if I do
> LDFLAGS+=${COMPILER_RPATH_FLAG}${X11BASE}/lib in the package Makefile,
> it doesn't make it to the source Makefile, which has $(LDFLAGS)
> explicitly in the compile statements.  This is one of those areas where
> I'm a little fuzzy on how the pkgsrc wrapper interacts with the source
> itself.  I read Chapter 12 in the Pkgsrc Guide hoping it would have an
> example, but no luck.
> 
> I gave you the example for what should be added to CFLAGS; for LDFLAGS
> there's LINKER_RPATH_FLAG.

Trying to be overly clever, I guess...

> Just patch the internal Makefile to use LDFLAGS+= instead of =, that
> should be sufficient...

That was the magic I was looking for!  But after I changed it to CFLAGS, it worked anyway.  I thought I'd misunderstood how variables get passed to/picked from the environment, or something, but I guess I was just setting the wrong var.

This now works on NB/i386, and still works on Sol9/sparc too.  Committed!


Thanks,
Tim

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.