On 24 January 2012 02:12, Christer Solskogen <christer.solsko...@gmail.com> wrote: > On Tue, Jan 24, 2012 at 12:22 AM, Lee Thomas <lthomas_li...@lthomas.net> > wrote: >> Hello fellow FreeBSD users, >> I ran across an odd issue compiling lua from ports on amd64 with FreeBSD >> 9.0-STABLE, and I'm not sure whether it's a bug or incorrect configuration >> on my part. The lang/lua port throws a linker error, claiming to need -fPIC, >> which is odd because the port Makefile seems to have logic to add that in, >> but somehow the logic seems not to have any effect, at least in my case. >> Making the port Makefile put ${CFLAGS} directly into lua's Makefile (patch >> at the end of this mail) fixes matters for me, but I don't understand the >> port infrastructure well enough to understand whether this patch represents >> a bugfix or a workaround of some local configuration issue. Has anyone run >> into this issue before? If this is a config issue, any hints on what might >> be going on or how to dope it out? >> > > I think I had the same problem about a moth ago. The problem was my > CFLAGS in make.conf. > You probably have CFLAGS=<something>, try setting it to CFLAGS?=<something>. >
We note above that: CFLAGS= -O2 -fno-strict-aliasing -pipe & since that tends to be the default anyway (see /usr/share/mk/sys.mk ), you're generally better off leaving it out entirely. -- -- _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"