Force static linking of library linked to Xcode target?

前端 未结 5 673
别跟我提以往
别跟我提以往 2020-12-09 19:06

My Xcode target links against hdf5 library (using the Link Binary with Libraries build phase). libhdf5 is installed using MacPorts, thus /opt/local/lib contains both the dyn

5条回答
  •  春和景丽
    2020-12-09 19:39

    In reaction to your comment on Eduard Wirch' answer: you can also control static linking for this one library only, if you replace -lhdf5 by -l/full/path/to/libhdf5.a

提交回复
热议问题