summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-07-15 15:44:15 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-07-15 15:44:15 -0300
commit055f7fa159af3f106c62315fc6d39f26ab45c1ca (patch)
tree800ed940bf7cb43c2b4d025cfab579e0c3050e9a /libmysqld
parentd9b6bbc5e89cfd79ee2c79790957779e765367da (diff)
downloadmariadb-git-055f7fa159af3f106c62315fc6d39f26ab45c1ca.tar.gz
WL#5486: Remove code for unsupported platforms
Restore hack necessary to setup a libmysqld archive.
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/Makefile.am16
1 files changed, 16 insertions, 0 deletions
diff --git a/libmysqld/Makefile.am b/libmysqld/Makefile.am
index 91b0c4c17bb..9d8c5edaa12 100644
--- a/libmysqld/Makefile.am
+++ b/libmysqld/Makefile.am
@@ -157,6 +157,22 @@ if DARWIN_MWCC
mwld -lib -o $@ libmysqld_int.a `echo $(INC_LIB) | sort -u` $(storageobjects)
else
-rm -f libmysqld.a
+ current_dir=`pwd`; \
+ rm -rf tmp; mkdir tmp; \
+ (for arc in $(INC_LIB) ./libmysqld_int.a; do \
+ arpath=`echo $$arc|sed 's|[^/]*$$||'|sed 's|\.libs/$$||'`; \
+ artmp=`echo $$arc|sed 's|^.*/|tmp/lib-|'`; \
+ for F in `$(AR) t $$arc | grep -v SYMDEF`; do \
+ if test -e "$$arpath/$$F" ; then echo "$$arpath/$$F"; else \
+ mkdir $$artmp; cd $$artmp > /dev/null; \
+ $(AR) x ../../$$arc; \
+ cd $$current_dir > /dev/null; \
+ ls $$artmp/* | grep -v SYMDEF; \
+ continue 2; fi; done; \
+ done; echo $(libmysqld_a_DEPENDENCIES) ) | sort -u | xargs $(AR) cq libmysqld.a; \
+ $(AR) r libmysqld.a $(storageobjects); \
+ $(RANLIB) libmysqld.a ; \
+ rm -rf tmp
endif
## XXX: any time the client interface changes, we'll need to bump