Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6755755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:26:26+00:00 2026-05-26T13:26:26+00:00

I am trying to run an autotools configure script for the bson-cpp project, and

  • 0

I am trying to run an autotools configure script for the bson-cpp project, and it fails because it cannot determine what flags it needs to compile with boost_filesystem. A quick look at confg.log shows:

g++ -o conftest -g -O2   -pthread  -L/usr/local/lib -R/usr/local/lib -L/usr/local/libexec conftest.o -lboost_filesystem-mt  -lboost_system-mt >&5
g++: error: unrecognized option '-R'

So, naturally, I tried to find out what the R option does, but I can’t seem to find it documented anywhere. I’ve checked here and here to no avail. What does the option do and how do I tell autotools not to use it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:26:27+00:00Added an answer on May 26, 2026 at 1:26 pm

    -R does not seem to be an option for g++ or gcc anywhere. -R may be a linker option on some platforms that is equivalent of -rpath to gnu ld, … This seems to be a known bug in boost builds … have a look at Use -Wl to pass arguments to the linker.

    It actually has the patch available there

    I am re-posting it for convenience, however PLEASE PLEASE look at the original URL linked above for official patch!

    --- ../gnote/m4/boost.m4    2011-01-25 14:30:18.000000000 +0200
    +++ m4/boost.m4 2011-02-27 20:57:11.686221539 +0200
    @@ -403,7 +403,7 @@
           LDFLAGS=$boost_save_LDFLAGS
           LIBS=$boost_save_LIBS
           if test x"$Boost_lib" = xyes; then
    -        Boost_lib_LDFLAGS="-L$boost_ldpath -R$boost_ldpath"
    +        Boost_lib_LDFLAGS="-L$boost_ldpath -Wl,-R$boost_ldpath"
             Boost_lib_LDPATH="$boost_ldpath"
             break 6
           else
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to run a simple script attached to my xcode project as follows... if
Im trying to run a script for a project, the goal is simple :
When trying to run an Eclipse Dynamic Web Project under a Tomcat setup using
Trying to run a MySQL script via Python and it keeps giving me errors.
I trying to run a Perl script to read an YAML file, but I
Trying to run a script on the page load, where if a className is
When trying to run the following command to compile some_file.java in Windows javac -classpath
I'm trying to debug an autotools problem for an open-source project, which is failing
I’m trying to create my first vala and first autotools supported project. Everything actually
I'm trying run this procedure with generic parameters. If I can't delete because some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.