[OS/2] Bug 390292: Exports needed for SQLite to fix OS/2 build break, r=bsmedberg
authormozilla@weilbacher.org
Thu, 02 Aug 2007 14:15:33 -0700
changeset 4190 7549c6cd286215b7011c0e77423a271a6a591c7a
parent 4189 605278dac45265081c1e582d649484dea39b032f
child 4191 6c61f1534c9cd8b02ac3a5a191e53ed23ee3f9a1
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs390292
milestone1.9a7pre
[OS/2] Bug 390292: Exports needed for SQLite to fix OS/2 build break, r=bsmedberg
db/sqlite3/src/Makefile.in
db/sqlite3/src/sqlite.def
--- a/db/sqlite3/src/Makefile.in
+++ b/db/sqlite3/src/Makefile.in
@@ -83,8 +83,13 @@ ifdef MOZ_OS2_HIGH_MEMORY
 DEFINES += -DOS2_HIGH_MEMORY
 endif
 endif
 
 include $(topsrcdir)/config/rules.mk
 
 # next line allows use of MOZ_OBJDIR in .mozconfig with older gcc on BeOS, maybe others
 LOCAL_INCLUDES += -I$(srcdir)
+
+ifeq ($(OS_ARCH),OS2)
+ADD_TO_DEF_FILE = sed -e '1,/^EXPORTS$$/ d' -e 's,sqlite3,_\0,' -e 's,\ DATA.*$$,,' \
+		$(srcdir)/sqlite.def >> $(DEF_FILE)
+endif
--- a/db/sqlite3/src/sqlite.def
+++ b/db/sqlite3/src/sqlite.def
@@ -30,17 +30,18 @@
 ; and other provisions required by the GPL or the LGPL. If you do not delete
 ; the provisions above, a recipient may use your version of this file under
 ; the terms of any one of the MPL, the GPL or the LGPL.
 ;
 ; ***** END LICENSE BLOCK *****
 
 LIBRARY sqlite3.dll
 
-EXPORTS sqlite3_aggregate_context
+EXPORTS
+        sqlite3_aggregate_context
         sqlite3_aggregate_count
         sqlite3_apis
         sqlite3_auto_extension
         sqlite3_bind_blob
         sqlite3_bind_double
         sqlite3_bind_int
         sqlite3_bind_int64
         sqlite3_bind_null