Mercurial > hg > aboriginal
annotate sources/sections/uClibc++.build @ 1458:60f1087591ac
Add ability to specify a package to rebuild to build.sh with REBUILD= (and then dependencies take it from there to the system image).
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 20 Oct 2011 02:02:10 -0500 |
parents | fc134a13357e |
children | d461b345c3c9 |
rev | line source |
---|---|
906
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 # Build and install uClibc++ |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 CROSS= make defconfig && |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 sed -r -i 's/(UCLIBCXX_HAS_(TLS|LONG_DOUBLE))=y/# \1 is not set/' .config && |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 sed -r -i '/UCLIBCXX_RUNTIME_PREFIX=/s/".*"/""/' .config && |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 CROSS= make oldconfig && |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 CROSS="$ARCH"- make && |
944
fc134a13357e
Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents:
938
diff
changeset
|
8 CROSS= make install PREFIX="$STAGE_DIR/c++" && |
906
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 # Move libraries somewhere useful. |
5e0cbc73da55
Split out linux-headers, uClibc, and uClibc++ as their own sections.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 |
944
fc134a13357e
Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents:
938
diff
changeset
|
12 mv "$STAGE_DIR"/c++/lib/* "$STAGE_DIR"/lib && |
fc134a13357e
Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents:
938
diff
changeset
|
13 rm -rf "$STAGE_DIR"/c++/{lib,bin} && |
fc134a13357e
Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents:
938
diff
changeset
|
14 ln -s libuClibc++.so "$STAGE_DIR"/lib/libstdc++.so && |
fc134a13357e
Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents:
938
diff
changeset
|
15 ln -s libuClibc++.a "$STAGE_DIR"/lib/libstdc++.a |