开发者

Setting current/compatibility version for a dylib using Netbeans (linux/mac)

开发者 https://www.devze.com 2023-02-13 04:38 出处:网络
As per the title, how can I set those? Moreover, how can I set versions themselves? Thanks to 开发者_开发技巧all and best regards.I believe you can add build options to your project. You\'d need to a

As per the title, how can I set those? Moreover, how can I set versions themselves?

Thanks to 开发者_开发技巧all and best regards.


I believe you can add build options to your project. You'd need to add linker options to set the compatible and current versions according to this page on "Mac OS X for for Unix Geeks": library version. (They use a library called "answer" in their examples, with a supposed current version of 1.2.6)

-dynamiclib -install_name libanswer.1.dylib \
  -compatibility_version 1.2 -current_version 1.2.6 \
  -o libanswer.1.2.6.dylib $(OBJS) 
0

精彩评论

暂无评论...
验证码 换一张
取 消