summaryrefslogtreecommitdiff
path: root/scp2/source/stdlibs
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2012-02-22 14:56:34 +0100
committerPetr Mladek <pmladek@suse.cz>2012-02-22 15:12:44 +0100
commit98c5fe7cb94b249363fc99134def17a735e02c6e (patch)
treea765f70aab9c5ce92535c1fb21bb7bcce9896197 /scp2/source/stdlibs
parentaff6db70245a74039b5331810d3ff654b1f6af63 (diff)
Fix build of the optional stdlibs package on Linux
Diffstat (limited to 'scp2/source/stdlibs')
-rw-r--r--scp2/source/stdlibs/file_stdlibs.scp58
-rw-r--r--scp2/source/stdlibs/makefile.mk52
-rw-r--r--scp2/source/stdlibs/module_stdlibs.scp47
-rw-r--r--scp2/source/stdlibs/module_stdlibs.ulf32
4 files changed, 189 insertions, 0 deletions
diff --git a/scp2/source/stdlibs/file_stdlibs.scp b/scp2/source/stdlibs/file_stdlibs.scp
new file mode 100644
index 000000000000..f1bd5903336c
--- /dev/null
+++ b/scp2/source/stdlibs/file_stdlibs.scp
@@ -0,0 +1,58 @@
+/*
+ * Version: MPL 1.1 / GPLv3+ / LGPLv3+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License or as specified alternatively below. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * Major Contributor(s):
+ * Fridrich Strba <fridrich.strba@bluewin.ch> (initial developer)
+ *
+ * All Rights Reserved.
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+ * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+ * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+ * instead of those above.
+ */
+
+#include "macros.inc"
+
+#if defined _gcc3 && !(defined FREEBSD || defined NETBSD || defined OPENBSD \
+ || defined MACOSX || defined SYSTEM_STDLIBS || defined(WNT) || defined(DRAGONFLY))
+File gid_File_Dl_GccS
+ LIB_FILE_BODY;
+ Dir = SCP2_URE_DL_DIR;
+#ifdef AIX
+ Name = "libgcc_s.a";
+#else
+ Name = SCP2_URE_DL_VER("gcc_s", STRING(SHORTSTDC3));
+#endif
+ Styles = (PACKED, VERSION_INDEPENDENT_COMP_ID);
+ // CompID = "C601D04B-2194-4F1B-BB09-7B4930D6E1DB";
+End
+#endif
+
+#if defined _gcc3 && !(defined FREEBSD || defined NETBSD || defined OPENBSD \
+ || defined MACOSX || defined SYSTEM_STDLIBS || defined(WNT) || defined(DRAGONFLY))
+File gid_File_Dl_Stdcpp
+ Dir = SCP2_URE_DL_DIR;
+ LIB_FILE_BODY;
+#ifdef AIX
+ Name = "libstdc++.a";
+#else
+ Name = SCP2_URE_DL_VER("stdc++", STRING(SHORTSTDCPP3));
+#endif
+ Styles = (PACKED, VERSION_INDEPENDENT_COMP_ID);
+ // CompID = "89740D6A-38EE-41AF-A6A2-A8F7ABBE4996";
+End
+#endif
diff --git a/scp2/source/stdlibs/makefile.mk b/scp2/source/stdlibs/makefile.mk
new file mode 100644
index 000000000000..3040025cabd3
--- /dev/null
+++ b/scp2/source/stdlibs/makefile.mk
@@ -0,0 +1,52 @@
+# Version: MPL 1.1 / GPLv3+ / LGPLv3+
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the "License"); you may not use this file except in compliance with
+# the License or as specified alternatively below. You may obtain a copy of
+# the License at http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# Major Contributor(s):
+# Petr Mladek <pmladek@suse.cz> (initial developer)
+#
+# All Rights Reserved.
+#
+# For minor contributions see the git repository.
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+# instead of those above.
+
+
+PRJ=..$/..
+
+PRJNAME=scp2
+TARGET=stdlibs
+TARGETTYPE=CUI
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+SCP_PRODUCT_TYPE=osl
+
+.IF "$(SYSTEM_STDLIBS)" != "YES"
+
+PARFILES = \
+ module_stdlibs.par \
+ file_stdlibs.par
+
+ULFFILES= \
+ module_stdlibs.ulf
+
+.ENDIF
+
+# --- File ---------------------------------------------------------
+
+.INCLUDE : target.mk
diff --git a/scp2/source/stdlibs/module_stdlibs.scp b/scp2/source/stdlibs/module_stdlibs.scp
new file mode 100644
index 000000000000..f938f85914b1
--- /dev/null
+++ b/scp2/source/stdlibs/module_stdlibs.scp
@@ -0,0 +1,47 @@
+/*
+ * Version: MPL 1.1 / GPLv3+ / LGPLv3+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License or as specified alternatively below. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * Major Contributor(s):
+ * Petr Mladek <pmladek@suse.cz> (initial developer)
+ *
+ * All Rights Reserved.
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+ * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+ * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+ * instead of those above.
+ */
+
+#include "macros.inc"
+
+Module gid_Module_Optional_Stdlibs
+ ParentID = gid_Module_Root;
+ Default = NO;
+ PackageInfo = "packinfo_ure.txt";
+ MOD_NAME_DESC(MODULE_OPTIONAL_STDLIBS);
+#ifdef UNX
+ Styles = ();
+#else
+ Styles = (DONTSHOWINUSERINSTALL);
+#endif
+ Files = (
+#if defined _gcc3 && !(defined FREEBSD || defined NETBSD || defined OPENBSD \
+ || defined MACOSX || defined SYSTEM_STDLIBS || defined(WNT) || defined(DRAGONFLY))
+ gid_File_Dl_GccS,
+ gid_File_Dl_Stdcpp
+#endif
+ );
+End
diff --git a/scp2/source/stdlibs/module_stdlibs.ulf b/scp2/source/stdlibs/module_stdlibs.ulf
new file mode 100644
index 000000000000..e29bbe4de76a
--- /dev/null
+++ b/scp2/source/stdlibs/module_stdlibs.ulf
@@ -0,0 +1,32 @@
+/*
+ * Version: MPL 1.1 / GPLv3+ / LGPLv3+
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License or as specified alternatively below. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * Major Contributor(s):
+ * Petr Mladek <pmladek@suse.cz> (initial developer)
+ *
+ * All Rights Reserved.
+ *
+ * For minor contributions see the git repository.
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+ * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+ * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+ * instead of those above.
+ */
+
+[STR_NAME_MODULE_OPTIONAL_STDLIBS]
+en-US = "Standard Compiler Libraries"
+
+[STR_DESC_MODULE_OPTIONAL_STDLIBS]
+en-US = "libstdc++ and libgcc_s for too old Linux systems."