Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > ar problems

ar problems
Thread Tools
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status: Offline
Reply With Quote
May 15, 2001, 01:24 PM
 
I was porting over a makefile to the Mac and found some weird changes. The ar command appears to be missing the s option. This means you have to run ranlib separately. This isn't that big a deal, once you realize what's going on.

I'm curious of why they did this though. Anyone know?
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status: Offline
Reply With Quote
May 16, 2001, 04:57 PM
 
Must be an older version of ar.

Typically on MacOS X, the libtool -static command is used to create libraries, and it automatically updates the table of contents so ranlib is not needed. libtool also handles fat libraries better than ar; this was the main reason it was written at NeXT I think. Note that this is a completely different different program than GNU's libtool; NeXT's program predated GNU's and they've never changed the name. GNU's libtool is available as the glibtool command.

Since NeXT/Apple's development environment doesn't ever use the ar command, I doubt they've had much reason to update it.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:35 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2