~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/config/cf/scoLib.rules

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
XCOMM $Xorg: scoLib.rules,v 1.3 2000/08/17 19:41:48 cpqbld Exp $
 
2
XCOMM $XFree86: xc/config/cf/scoLib.rules,v 1.9 2002/11/20 23:00:34 dawes Exp $
 
3
 
 
4
#ifndef ExtraLoadFlags
 
5
#define ExtraLoadFlags -R $(USRLIBDIRPATH)
 
6
#endif
 
7
 
 
8
/*
 
9
 * SharedLibraryTarget3 - generate rules to create a shared library;
 
10
 * build it into a different name so that we do not hose people by having
 
11
 * the library gone for long periods.  
 
12
 *
 
13
 * Work around SCO sh enviroment size problem.
 
14
 */
 
15
#ifndef SharedLibraryTarget3
 
16
#define SharedLibraryTarget3(libname,rev,solist1,solist2,solist3,down,up)       @@\
 
17
AllTarget(Concat(lib,libname.so.rev))                                   @@\
 
18
                                                                        @@\
 
19
Concat(lib,libname.so.rev): solist1 solist2 solist3 $(EXTRALIBRARYDEPS) @@\
 
20
        $(RM) $@~                                                       @@\
 
21
        echo -n $(LD) -o up/$@~ $(SHLIBLDFLAGS) -R $(DESTDIR)$(SHLIBDIR) -h $@ solist1 " " > Concat(down/lib,cmd)       @@\
 
22
        echo -n solist2 " " >> Concat(down/lib,cmd)                     @@\
 
23
        echo -n solist3  >> Concat(down/lib,cmd)                        @@\
 
24
        (cd down; $(SHELL) Concat(./lib,cmd))                           @@\
 
25
        $(RM) $@ Concat(lib,tmp1) Concat(lib,tmp2)                      @@\
 
26
        $(MV) $@~ $@                                                    @@\
 
27
        @if $(SOSYMLINK); then (set -x; \                               @@\
 
28
          $(RM) Concat(lib,libname.so); \                               @@\
 
29
          $(LN) $@ Concat(lib,libname.so)); fi                          @@\
 
30
        LinkBuildLibrary($@)                                            @@\
 
31
        LinkBuildLibraryMaybe(Concat(lib,libname.so),$(SOSYMLINK))      @@\
 
32
                                                                        @@\
 
33
clean::                                                                 @@\
 
34
        $(RM) Concat(lib,libname.so.rev) Concat(lib,libname.so)
 
35
 
 
36
#endif /* SharedLibraryTarget */
 
37
 
 
38
#ifndef LinkWithExports
 
39
# if UseExportLists
 
40
#  define LinkWithExports(libname,rev,solist,down,up) \
 
41
        (cd down; $(CCENVSETUP) $(LD) -o up/$@~ $(SHLIBLDFLAGS) -R $(DESTDIR)$(SHLIBDIR) -h $@ solist $(REQUIREDLIBS))  @@\
 
42
        if [ -f Concat(lib,libname.elist) ]; then \                     @@\
 
43
            $(RM) down/$@.exports $@.list; \                            @@\
 
44
            $(CPP) $(ALLINCLUDES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES) Concat(lib,libname.elist) | CppSedMagic >$@.list; \   @@\
 
45
            $(EXPORTLISTGEN) $@~ $@.list > down/$@.exports; \           @@\
 
46
            (cd down; $(CCENVSETUP) $(LD) -o up/$@~ $(SHLIBLDFLAGS) -h $@ ShlibExportListOpt($@.exports) solist $(REQUIREDLIBS)); \     @@\
 
47
            $(RM) down/$@.exports $@.list; \                            @@\
 
48
        fi;
 
49
# else
 
50
#  define LinkWithExports(libname,rev,solist,down,up) \
 
51
        (cd down; $(CCENVSETUP) $(LD) -o up/$@~ $(SHLIBLDFLAGS) -R $(DESTDIR)$(SHLIBDIR) -h $@ solist $(REQUIREDLIBS))
 
52
# endif
 
53
#endif