site.def: Only build C/en_US locales by default for Linux
[oweals/cde.git] / cde / config / cf / bsdLib.rules
index 0d18ecac2f5472c05e98a1dfa7b2321052fbb4e1..c55b67c620005d90afef346d476ba39c15507105 100644 (file)
@@ -20,7 +20,7 @@ XCOMM $XConsortium: bsdLib.rules /main/3 1996/09/28 16:09:18 rws $
 #define ShLibIncludeFile <bsdLib.tmpl>
 #endif
 #ifndef SharedLibraryLoadFlags
-#define SharedLibraryLoadFlags -Bshareable
+#define SharedLibraryLoadFlags -shared
 #endif
 #ifndef PositionIndependentCFlags
 #define PositionIndependentCFlags -fpic
@@ -49,13 +49,14 @@ AllTarget(Concat(lib,libname.so.rev))                                       @@\
                                                                        @@\
 Concat(lib,libname.so.rev):  solist $(EXTRALIBRARYDEPS)                        @@\
        $(RM) $@~                                                       @@\
-       (cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS)) @@\
+       (cd down; $(CC) -o up/$@~ $(SHLIBLDFLAGS) -Wl,-soname,$@ solist $(REQUIREDLIBS)) @@\
        $(RM) $@                                                        @@\
        $(MV) $@~ $@                                                    @@\
        $(RM) Concat(lib,libname.so)                                    @@\
        $(LN) $@ Concat(lib,libname.so)                                 @@\
        LinkBuildLibrary($@)                                            @@\
-       LinkBuildLibrary(Concat(lib,libname.so))                        @@\
+       (cd $(BUILDLIBDIR) && $(RM) Concat(lib,libname.so) && \
+               $(LN) $@ Concat(lib,libname.so))                        @@\
                                                                        @@\
 clean::                                                                        @@\
        $(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)