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 3489482
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:24:03+00:00 2026-05-18T11:24:03+00:00

My project uses a static library from an external supplier, libext.a . The library

  • 0

My project uses a static library from an external supplier, libext.a.
The library is kept in a central location shared among all the project developers, central/, and with each updated release of the library, the new file with a suffix of the current version is added: central/libext.a.1, central/libext.a.2, central/libext.a.3, …

The project’s Subversion repository contains a symbolic link, libext.a, that points to the latest version of the library in central. Whenever a new version is added, the link is changed and committed to the repository.

The problem is that when recompiling the project after the link was changed and the working copy updated, make looks at the modification time of the link’s target, and not at the modification time of the link itself (libext.a). So the library used in effect in the compiled project is still the old version.

I am aware of the -L/--check-symlink-times flag available in GNU Make since version 3.81, which makes make look at the modification times of both the link’s target and the link itself, but my project uses version 3.80, and upgrading would be very difficult as compilation has to be supported on many different machines, of some of which I have no control.

What is the most simple way to emulate the behavior of this new flag in my older version of make?
I prefer something that can be local to a specific Makefile and implemented within it, not a script that has to be run before running make or a command line option that has to be specified with it, although it is not completely unacceptable.

  • 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-18T11:24:03+00:00Added an answer on May 18, 2026 at 11:24 am

    The best solution I’ve come up with so far is to add libext.a.timestamp as a requirement in the Makefile that requires libext.a, and add it as a prerequisite to the rule that has libext.a as a prerequisite.

    Also, I added a rule:

    %.timestamp
      touch $@
    

    Now I need to find a way to touch the timestamp whenever the link is updated. Unfortunately, I didn’t find a way to do this yet (there is no post-updated hook in SVN)…

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

Sidebar

Related Questions

I have inherited a project that uses the following pattern for passing parameters from
e.exe is linked against my custom static library, c.lib , which uses Win32 API
A homework project I'm working on uses static and dynamic arrays. However, I'm not
My current project uses NUnit for unit tests and to drive UATs written with
The ampoule project uses some tags in docstring, like the javadoc ones. For example
I inherited a project that uses SQL Server 200x, wherein a column that stores
I have Midas project that uses a TDataSetProvider in one of RemoteDataModules in the
In a C++ project that uses smart pointers, such as boost::shared_ptr , what is
I have inherited a project that uses LLBLGen Pro for the DB layer. The
I'm building a project that uses the JVCL plugin system, which relies on runtime

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.