[Bro-Dev] #402: [PATCH] -fPIC is needed for FreeBSD/amd64

Bro Tracker bro at tracker.icir.org
Mon Apr 11 12:36:18 PDT 2011


#402: [PATCH] -fPIC is needed for FreeBSD/amd64
-----------------------+-----------------------
  Reporter:  leres     |      Owner:  jsiwek
      Type:  Problem   |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  Broccoli  |    Version:  git/devel
Resolution:            |   Keywords:
-----------------------+-----------------------

Comment (by jsiwek):

 I'm not that keen on adding a default compile flag for this -- mostly
 because there's differences between `-fPIC` and `-fpic` on different
 platforms and I don't want to try to make an assumption on what the user
 wants.  One easy/flexible way to resolve the error (trying to link shared
 broccoli bindings library against static broccoli library on x86_64) is:

 {{{
 CFLAGS=-fPIC ./configure --enable-static
 }}}

 Needing to link the broccoli bindings against a static broccoli library
 should not be a common situation that users will find themselves in.

 To wrap this up, I'll make some clarity changes to `./configure -help` and
 add an option to disable broccoli bindings as another workaround to this
 for users that just don't care about the bindings.

-- 
Ticket URL: <http://tracker.icir.org/bro/ticket/402#comment:5>
Bro Tracker <http://tracker.icir.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list