Ticket #31948: build_test.sh

File build_test.sh, 312 bytes (added by royliu@…, 13 years ago)

A script to build the test case (revision 2).

Line 
1#!/usr/bin/env bash
2
3gcc="g++-apple-4.2"
4
5"$gcc" \
6    -v \
7    -mmacosx-version-min=10.6 \
8    -isysroot /Developer/SDKs/MacOSX10.6.sdk \
9    -Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.sdk \
10    -g -O -Wall -o a.out test.cpp \
11    -I/opt/local/include /opt/local/lib/libcrypto.dylib /opt/local/lib/libssl.dylib