open-src/xserver/xorg/Makefile
changeset 1447 b26f1451b601
parent 1422 e9cadc0026d8
child 1458 34b08166bf33
equal deleted inserted replaced
1446:3bee9d11328b 1447:b26f1451b601
     1 ###############################################################################
     1 ###############################################################################
     2 #
     2 #
     3 # Xorg server Makefile
     3 # Xorg server Makefile
     4 #
     4 #
     5 # Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
     5 # Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
     6 #
     6 #
     7 # Permission is hereby granted, free of charge, to any person obtaining a
     7 # Permission is hereby granted, free of charge, to any person obtaining a
     8 # copy of this software and associated documentation files (the "Software"),
     8 # copy of this software and associated documentation files (the "Software"),
     9 # to deal in the Software without restriction, including without limitation
     9 # to deal in the Software without restriction, including without limitation
    10 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
    10 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
   153 
   153 
   154 # Pass linker mapfile listing symbols that modules can count on resolving
   154 # Pass linker mapfile listing symbols that modules can count on resolving
   155 # from the Xorg binary itself
   155 # from the Xorg binary itself
   156 XORG_EXTERNS_FLAG = -Wl,-M,$(PWD)/$(XORG_EXTERNS_FILE)
   156 XORG_EXTERNS_FLAG = -Wl,-M,$(PWD)/$(XORG_EXTERNS_FILE)
   157 MODULE_BUILD_ENV = XORG_EXTERNS_FLAG='$(XORG_EXTERNS_FLAG)'
   157 MODULE_BUILD_ENV = XORG_EXTERNS_FLAG='$(XORG_EXTERNS_FLAG)'
   158 MODULE_LDFLAGS += $(XORG_EXTERNS_FLAG)
   158 MODULE_LD_SHARED_OPTIONS += -M $(PWD)/$(XORG_EXTERNS_FILE)
       
   159 
       
   160 # Disable direct binding in shared objects, since it breaks libglx.so
       
   161 MODULE_BUILD_ENV += LD_SHARED_UNSET="-B direct"
   159 
   162 
   160 # Optimization doesn't always remove unused inline functions, leaving many 
   163 # Optimization doesn't always remove unused inline functions, leaving many 
   161 # binaries referencing pixman symbols that normally don't need them.  Using
   164 # binaries referencing pixman symbols that normally don't need them.  The
   162 # -z ignore should ensure that it's not added when not really needed.
   165 # $(ZDISCARD_UNUSED_DEP) in LD_OPTIONS should avoid adding it when
   163 # Adding -z muldefs for 16418361 - which should be removed once we fix that
   166 # not really needed.
   164 MODULE_CONFIG_OPTS += LIBS="-z ignore -lpixman-1 -z muldefs"
   167 MODULE_CONFIG_OPTS += LIBS="-lpixman-1"
   165 
   168 
   166 # pkg-config files that need to have -R added
   169 # pkg-config files that need to have -R added
   167 FIX_PC_FILES=xorg-server.pc.in
   170 FIX_PC_FILES=xorg-server.pc.in
   168 # Remove compiler specific visibility flag that breaks builds of drivers
   171 # Remove compiler specific visibility flag that breaks builds of drivers
   169 # with other compilers
   172 # with other compilers