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

  • Home
  • SEARCH
  • 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 8282991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:34:32+00:00 2026-06-08T10:34:32+00:00

A have a project build with GNU autotools. Now I have a tiny change

  • 0

A have a project build with GNU autotools. Now I have a tiny change and only want to copy one single library libmylib.so and one program myprog.x (using that library) from the whole collection.

I do not want to use make install because I have to be very careful not to overwrite all the other stuff.

When I do

ldd .libs/myprog.x

I see that the library used is — as expected — the freshly built library and not that one in /usr/lib/.

$ ldd .libs/myprog.x
libmylib.so.0 => /home/user/project/.libs/libmylib.so.0 (0x003bb000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00f57000)
libc.so.6 => /lib/tls/libc.so.6 (0x00948000)
libz.so.1 => /usr/lib/libz.so.1 (0x0024e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00ee7000)

How can I tell make or libtool to relink myprog.x so that I can copy it manually to /usr/bin/? After copying libmylib.so to /usr/lib/ of course.

  • 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-06-08T10:34:34+00:00Added an answer on June 8, 2026 at 10:34 am

    (I worked this out by running make -n install | less.)

    You probably want to install the libraries and program (if it’s linked using libtool) with libtool, so try something like:

    sudo ./libtool --mode=install /usr/bin/install -c libmylib.la /usr/lib
    sudo ./libtool --mode=install /usr/bin/install -c myprog.x /usr/bin
    

    Libtool might ask you to run a ./libtool --mode=finish command as well. I’d trust its advice. Before doing any of this, I’d run the commands with the --dry-run option and without sudo to see what exactly is going to happen.

    Note that I’m not running the system libtool, but the one that was created by the configure script.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using GNU autotools for the build system on a particular project. I want
I have a C++ project that uses the GNU Autotools for its build scripts
I have two projects.One project is build in MVC asp.net and the other project
I have a project that has several build configurations (FREE version, male-only, female-only, etc.).
I have a cross-platform shared library, and I am using GNU autotools for the
In a project built with GNU Autotools, I have a script that needs to
I have a build project that I run from TeamCity, now it takes the
We have several independent builds (each independent build is a multi-project build). The main
I have a project that comprises pre-build Dll modules, built some time in the
In my build configuration I have multiple project queues: Queue1, Queue2, ... Queue(N) I

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.