| OLD | NEW |
| 1 # Copyright (C) 2002,2003,2004,2005,2006,2007,2008 | 1 # Copyright (C) 2002,2003,2004,2005,2006,2007,2008 |
| 2 # Free Software Foundation, Inc. | 2 # Free Software Foundation, Inc. |
| 3 # This file is part of the GNU C Library. | 3 # This file is part of the GNU C Library. |
| 4 | 4 |
| 5 # The GNU C Library is free software; you can redistribute it and/or | 5 # The GNU C Library is free software; you can redistribute it and/or |
| 6 # modify it under the terms of the GNU Lesser General Public | 6 # modify it under the terms of the GNU Lesser General Public |
| 7 # License as published by the Free Software Foundation; either | 7 # License as published by the Free Software Foundation; either |
| 8 # version 2.1 of the License, or (at your option) any later version. | 8 # version 2.1 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 # The GNU C Library is distributed in the hope that it will be useful, | 10 # The GNU C Library is distributed in the hope that it will be useful, |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 # What we install as libpthread.so for programs to link against is in fact a | 367 # What we install as libpthread.so for programs to link against is in fact a |
| 368 # link script. It contains references for the various libraries we need. | 368 # link script. It contains references for the various libraries we need. |
| 369 # The libpthread.so object is not complete since some functions are only | 369 # The libpthread.so object is not complete since some functions are only |
| 370 # defined in libpthread_nonshared.a. | 370 # defined in libpthread_nonshared.a. |
| 371 # We need to use absolute paths since otherwise local copies (if they exist) | 371 # We need to use absolute paths since otherwise local copies (if they exist) |
| 372 # of the files are taken by the linker. | 372 # of the files are taken by the linker. |
| 373 install: $(inst_libdir)/libpthread.so | 373 install: $(inst_libdir)/libpthread.so |
| 374 | 374 |
| 375 $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \ | 375 $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \ |
| 376 $(objpfx)libpthread.so$(libpthread.so-version) \ | 376 $(objpfx)libpthread.so$(libpthread.so-version) \ |
| 377 » » » $(inst_libdir)/$(patsubst %,$(libtype.oS),\ | 377 » » » $(inst_libdir)/$(patsubst %,$(libtype.ons),\ |
| 378 $(libprefix)pthread) \ | 378 $(libprefix)pthread) \ |
| 379 $(+force) | 379 $(+force) |
| 380 # TODO(mseaborn): I made the paths here non-absolute so that the | 380 # TODO(mseaborn): I made the paths here non-absolute so that the |
| 381 # install tree is relocatable (by removing the $(slibdir) and $(libdir) | 381 # install tree is relocatable (by removing the $(slibdir) and $(libdir) |
| 382 # prefixes), but this should be revisited because it means ld will | 382 # prefixes), but this should be revisited because it means ld will |
| 383 # look in the current directory for the library. | 383 # look in the current directory for the library. |
| 384 (echo '/* GNU ld script';\ | 384 (echo '/* GNU ld script';\ |
| 385 echo ' Use the shared library, but some functions are only in';\ | 385 echo ' Use the shared library, but some functions are only in';\ |
| 386 echo ' the static library, so try that secondarily. */';\ | 386 echo ' the static library, so try that secondarily. */';\ |
| 387 cat $<; \ | 387 cat $<; \ |
| 388 echo 'GROUP ( libpthread.so$(libpthread.so-version)' \ | 388 echo 'GROUP ( libpthread.so$(libpthread.so-version)' \ |
| 389 » '$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\ | 389 » '$(patsubst %,$(libtype.ons),$(libprefix)pthread)'\ |
| 390 ')' \ | 390 ')' \ |
| 391 ) > $@.new | 391 ) > $@.new |
| 392 mv -f $@.new $@ | 392 mv -f $@.new $@ |
| 393 endif | 393 endif |
| 394 | 394 |
| 395 | 395 |
| 396 # 'pthread_self' is a simple memory or register load. Setting up the | 396 # 'pthread_self' is a simple memory or register load. Setting up the |
| 397 # stack frame is more work than the actual operation. Disable the | 397 # stack frame is more work than the actual operation. Disable the |
| 398 # frame creation entirely. This will help applications which call the | 398 # frame creation entirely. This will help applications which call the |
| 399 # function frequently to get a thread-specific handle. | 399 # function frequently to get a thread-specific handle. |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 | 614 |
| 615 $(objpfx)tst-fini1mod.so: $(shared-thread-library) | 615 $(objpfx)tst-fini1mod.so: $(shared-thread-library) |
| 616 | 616 |
| 617 tst-stackguard1-ARGS = --command "$(built-program-cmd) --child" | 617 tst-stackguard1-ARGS = --command "$(built-program-cmd) --child" |
| 618 tst-stackguard1-static-ARGS = --command "$(objpfx)tst-stackguard1-static --child
" | 618 tst-stackguard1-static-ARGS = --command "$(objpfx)tst-stackguard1-static --child
" |
| 619 | 619 |
| 620 # The tests here better do not run in parallel | 620 # The tests here better do not run in parallel |
| 621 ifneq ($(filter %tests,$(MAKECMDGOALS)),) | 621 ifneq ($(filter %tests,$(MAKECMDGOALS)),) |
| 622 .NOTPARALLEL: | 622 .NOTPARALLEL: |
| 623 endif | 623 endif |
| OLD | NEW |