mainGNU tar - Support: sr #108882, How to static compile tar command


sr #108882: How to static compile tar command

Submitter:  None
Submitted:  Tue 15 Sep 2015 08:10:03 PM UTC
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup

Tue 15 Sep 2015 08:10:03 PM UTC, original submission:  

I downloaded tar 1.28 and am attempting to compile a static binary for system recovery media. I just don't want to have to include any more share libraries on the media than necessary, so want to get selinux, acl, attr, pcre and lzma built into the binary.

The README indicates I can use
    ./configure CC=gcc LDFLAGS=-static
but this creates a static binary without support for anything normally found in the shared libraries (SELinux, ACLs, etc).

So, I installed libselinux-devel-static RPM, and this got the selinux support in there, but I can't find static libraries for anything else. Lots of search results say that libacl.a can be found in libacl-devel, but I have it and it's nowhere to be found.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.


No changes have been made to this item

Back to the top

Powered by Savane 3.13-b921.
Corresponding source code