Allow building on FreeBSD
[oweals/cde.git] / cde / config / cf / bsdLib.rules
index 0d18ecac2f5472c05e98a1dfa7b2321052fbb4e1..5f9d69d336f8d54152e77362f474839807fde0fd 100644 (file)
@@ -49,13 +49,13 @@ AllTarget(Concat(lib,libname.so.rev))                                       @@\
                                                                        @@\
 Concat(lib,libname.so.rev):  solist $(EXTRALIBRARYDEPS)                        @@\
        $(RM) $@~                                                       @@\
-       (cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS)) @@\
+       (cd down; $(LD) -o up/$@~ -soname $@ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS)) @@\
        $(RM) $@                                                        @@\
        $(MV) $@~ $@                                                    @@\
        $(RM) Concat(lib,libname.so)                                    @@\
        $(LN) $@ Concat(lib,libname.so)                                 @@\
        LinkBuildLibrary($@)                                            @@\
-       LinkBuildLibrary(Concat(lib,libname.so))                        @@\
+       (cd $(BUILDLIBDIR) && $(LN) $@ Concat(lib,libname.so))          @@\
                                                                        @@\
 clean::                                                                        @@\
        $(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)