Opened 12 years ago

Closed 12 years ago

#227 closed defect (invalid)

Update Install doc --with-ld-opt for FreeBSD

Reported by: Mike Ringrose Owned by: somebody
Priority: minor Milestone:
Component: nginx-core Version: 1.2.x
Keywords: Cc: gcc, version, 4.2.1, (Apple, Inc., build, 5664)
uname -a: Darwin US145260.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
nginx -V: nginx version: nginx/1.2.4
built by gcc 4.2.1 (Apple Inc. build 5664)
configure arguments: --with-cc-opt='-I /usr/local/include' --with-ld-opt=-L/usr/local/lib


On the install documentation page (, there should be no space after the -L for the ld option.

--with-ld-opt=parameters — sets additional parameters that will be used during linking. When using the system PCRE library under FreeBSD, --with-ld-opt="-L /usr/local/lib" should be specified.

Change History (4)

comment:1 by Maxim Dounin, 12 years ago

Resolution: invalid
Status: newclosed

While both variants are actually valid on FreeBSD as well as on many other systems (i.e. space doesn't matter), POSIX says there should be a space. Any specific reason you have in mind to don't use space?

(On the other hand, the whole sentence probably should be removed instead, as it's irrelevant since nginx 0.4.14.)

comment:2 by Maxim Dounin, 12 years ago

Resolution: invalid
Status: closedreopened

Err, I don't mean to actually close the ticket right now, sorry. I want to see some answer before I'll do it. :)

comment:3 by Mike Ringrose, 12 years ago

I encountered the problem on OSX 10.6.8 (darwin) and the space after the -L option did not work. I then checked the FreeBSD man pages and saw no space after the -L and assumed it would have the same issue. I should have actually tested it on FreeBSD.

comment:4 by Maxim Dounin, 12 years ago

Resolution: invalid
Status: reopenedclosed

Ok, MacOSX 10.6.8 is indeed does wrong thing here. It's fixed in 10.7.x though.

Note: See TracTickets for help on using tickets.