Nokia Networks Home

Nokia nmake Product Builder

Quick Links

Related Products

Why do HP-UX archive libraries have trunkated .o names?

On HP-UX nmake lu3.2 and 3.1.2 will, by default, include the f flag to ar (by way of CC.AROPTS in the make probe file). The f flag tells the ar command to truncate the .o filenames to 14 characters before performing operations on the archive. This flag was being included for compatibility issues and may cause problems replacing .o files when two or more files share filenames that differ only after the first 14 characters.

If you are archiving .o filenames longer than 14 characters and do not wish the filenames to be truncated you can eliminate the default f flag by setting the following in your global makefile:

    ARFLAGS = r

Release lu3.3 no longer sets CC.AROPTS=f in the make probe file. Therefore the f flag does not get passed to ar so archive libraries made on HP-UX with lu3.3 will not have truncated .o names by default. If you want the old behavior then you may set ARFLAGS+=f.

Last Update: Friday,12-Aug-2016 10:45:46 EDT