File: link-with-shared

package info (click to toggle)
libflorist 2014-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,996 kB
  • ctags: 304
  • sloc: ada: 11,705; ansic: 7,195; makefile: 154; sh: 19
file content (21 lines) | stat: -rw-r--r-- 292 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -C -e -f -u
TOP_SOURCE_DIR="`pwd`"
cd "$ADTTMP"

cat > p.gpr <<EOF
with "florist";
project P is
   for Main use ("p.adb");
end P;
EOF
cat > p.adb <<EOF
with POSIX;
procedure P is
   V : constant Integer := POSIX.POSIX_Version;
begin
   null;
end P;
EOF
gnatmake -q -P p.gpr
./p