Print this page
lib: move compat links from targetdirs to proper makefiles

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libcurses/Makefile.com
          +++ new/usr/src/lib/libcurses/Makefile.com
↓ open down ↓ 199 lines elided ↑ open up ↑
 200  200          cd $(ROOTLIBDIR); \
 201  201                  $(RM) llib-ltermlib.ln ; \
 202  202                  $(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln;
 203  203  
 204  204  $(ROOTLIBDIR64)/$(LINTLIB) := INS.file= \
 205  205          -$(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LINTLIB); \
 206  206          cd $(ROOTLIBDIR64); \
 207  207                  $(RM) llib-ltermlib.ln ; \
 208  208                  $(SYMLINK) ./llib-lcurses.ln llib-ltermlib.ln;
 209  209  
      210 +COMPATLINKS +=  /usr/ccs/lib/libcurses.so \
      211 +                /usr/ccs/lib/libtermlib.so \
      212 +                /usr/lib/libtermlib.so \
      213 +                /usr/lib/libtermlib.so.1
      214 +
      215 +COMPATLINKS64 +=        /usr/ccs/lib/$(MACH64)/libcurses.so \
      216 +                        /usr/ccs/lib/$(MACH64)/libtermlib.so \
      217 +                        /usr/lib/$(MACH64)/libtermlib.so \
      218 +                        /usr/lib/$(MACH64)/libtermlib.so.1
      219 +
      220 +$(ROOT)/usr/ccs/lib/libcurses.so := COMPATLINKTARGET=../../../lib/libcurses.so.1
      221 +$(ROOT)/usr/ccs/lib/libtermlib.so := \
      222 +        COMPATLINKTARGET=../../../lib/libcurses.so.1
      223 +$(ROOT)/usr/ccs/lib/$(MACH64)/libcurses.so := \
      224 +        COMPATLINKTARGET=../../../../lib/$(MACH64)/libcurses.so.1
      225 +$(ROOT)/usr/ccs/lib/$(MACH64)/libtermlib.so := \
      226 +        COMPATLINKTARGET=../../../../lib/$(MACH64)/libcurses.so.1
      227 +$(ROOT)/usr/lib/libtermlib.so.1 := COMPATLINKTARGET= ../../lib/libcurses.so.1
      228 +$(ROOT)/usr/lib/libtermlib.so := COMPATLINKTARGET= ../../lib/libcurses.so.1
      229 +$(ROOT)/usr/lib/$(MACH64)/libtermlib.so.1 := \
      230 +        COMPATLINKTARGET= ../../../lib/$(MACH64)/libcurses.so.1
      231 +$(ROOT)/usr/lib/$(MACH64)/libtermlib.so := \
      232 +        COMPATLINKTARGET= ../../../lib/$(MACH64)/libcurses.so.1
      233 +
 210  234  #
 211  235  # Install rule for the lint source, which is installed only in
 212  236  # the default library dir, not MACH64 etc.
 213  237  #
 214  238  $(ROOTLINTDIR)/%: ../screen/%
 215  239          $(INS.file)
 216  240          cd $(ROOTLINTDIR); \
 217  241                  $(RM) llib-ltermlib ; \
 218  242                  $(SYMLINK) ./llib-lcurses llib-ltermlib;
 219  243  
 220  244  #
 221  245  # Include library targets
 222  246  #
 223  247  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX