source: macx_update_bin.sh

Last change on this file was 369:c570f2e52b32, checked in by fedorov@…, 7 years ago

macx build system updates

  • Property exe set to *
File size: 1.6 KB
Line 
1#!/bin/sh
2
3APPROOT=./imgcnv.app/Contents
4APPBIN=$APPROOT/MacOS/imgcnv
5
6mkdir -p $APPROOT/Libraries
7cp /usr/local/lib/gcc/4.9/libstdc++.6.dylib $APPROOT/Libraries/
8cp /usr/local/lib/gcc/4.9/libgomp.1.dylib $APPROOT/Libraries/
9cp /usr/local/lib/gcc/4.9/libgcc_s.1.dylib $APPROOT/Libraries/
10#cp /usr/local/lib/gcc/4.9/libgcc_s.1.dylib $APPROOT/Libraries/
11
12# update app
13install_name_tool -change /usr/local/lib/gcc/4.9/libstdc++.6.dylib @executable_path/../Libraries/libstdc++.6.dylib $APPBIN
14install_name_tool -change /usr/local/lib/gcc/4.9/libgomp.1.dylib @executable_path/../Libraries/libgomp.1.dylib $APPBIN
15install_name_tool -change /usr/local/lib/gcc/4.9/libgcc_s.1.dylib @executable_path/../Libraries/libgcc_s.1.dylib $APPBIN
16
17# update libs - libstdc++.6.dylib
18install_name_tool -id @executable_path/../Libraries/libstdc++.6.dylib $APPROOT/Libraries/libstdc++.6.dylib
19install_name_tool -change /usr/local/lib/gcc/4.9/libgcc_s.1.dylib @executable_path/../Libraries/libgcc_s.1.dylib $APPROOT/Libraries/libstdc++.6.dylib
20
21# update libs - libgcc_s.1.dylib
22install_name_tool -id @executable_path/../Libraries/libgcc_s.1.dylib $APPROOT/Libraries/libgcc_s.1.dylib
23
24# update libs - libgomp.1.dylib
25install_name_tool -id @executable_path/../Libraries/libgomp.1.dylib $APPROOT/Libraries/libgomp.1.dylib
26install_name_tool -change /usr/local/lib/gcc/4.9/libgcc_s.1.dylib @executable_path/../Libraries/libgcc_s.1.dylib $APPROOT/Libraries/libgomp.1.dylib
27
28
29# now let's check their status
30file $APPBIN
31otool -L $APPBIN
32
33otool -L $APPROOT/Libraries/libstdc++.6.dylib
34otool -L $APPROOT/Libraries/libgomp.1.dylib
35otool -L $APPROOT/Libraries/libgcc_s.1.dylib
Note: See TracBrowser for help on using the repository browser.