WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: libdrm-dev  (Read 7602 times)

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
libdrm-dev
« on: March 10, 2019, 04:37:14 PM »
Can someone remind me where I can find the static .la files archive for 64-bit? Has libdrm.la been added to it?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14816
Re: libdrm-dev
« Reply #1 on: March 11, 2019, 01:01:38 AM »
They're present in the 9.x repo version..

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: libdrm-dev
« Reply #2 on: March 11, 2019, 01:45:13 PM »
I still can't find it. Whould it be the same for TC 10 as TC 9? When library extensions are updated, are the .la files in this archive updated as well? Specifically, open-vm-tools wants libdrm.la.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14816
Re: libdrm-dev
« Reply #3 on: March 11, 2019, 02:24:30 PM »
As per this they are there:

http://tinycorelinux.net/9.x/x86_64/tcz/libdrm-dev.tcz.list

Depending on whether the library names are updated, the *.la files are updated - in this case, I believe they are the same.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11624
Re: libdrm-dev
« Reply #4 on: March 11, 2019, 03:47:30 PM »
Hi andyj
I just ran a diff on the x86 versions of libdrm.la from my TC4 machine against that of my TC9 machine and came up with this:
Code: [Select]
tc@box:~$ diff -u /usr/local/lib/libdrm.la guilib/libdrm.la
--- /usr/local/lib/libdrm.la    2010-06-01 07:20:36.000000000 +0000
+++ guilib/libdrm.la    2019-03-11 15:27:58.230629013 +0000
@@ -1,5 +1,5 @@
 # libdrm.la - a libtool library file
-# Generated by ltmain.sh (GNU libtool) 2.2.6b
+# Generated by libtool (GNU libtool) 2.4.6
 #
 # Please DO NOT delete this file!
 # It is necessary for linking the library.
@@ -13,11 +13,11 @@
 # The name of the static archive.
 old_library=''
 
-# Linker flags that can not go in dependency_libs.
+# Linker flags that cannot go in dependency_libs.
 inherited_linker_flags=''
 
 # Libraries that this one depends upon.
-dependency_libs=' -lrt'
+dependency_libs=' -lm'
 
 # Names of additional weak libraries provided by this library
 weak_library_names=''
tc@box:~$
Aside from a couple of comments, the only thing that changed is a dependency from  librt  to libm,  both of which are
part of the base system libraries. I think the previous  .la  file should be OK to use. Aside from the missing  .la  files, the
TC10 version has a couple of headers that the TC9 version did not.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14816
Re: libdrm-dev
« Reply #5 on: March 12, 2019, 01:06:47 AM »
Ah - in re-reading what I said, perhaps I wasn't clear.

If compiling an extension produces *.la files then these are included in the *-dev extension.

In the case of the latest libdrm, it was compiled with meson/ninja, which does not produce any *.la files and thus they were not included in libdrm-dev.

In the particular case of libdrm, I believe it could have been compiled with autotools to produce *.la files, but many other extensions like, for example, atk no longer give the choice.

The above being the case, if *.la files are required, they will need to be taken from the most recent *-dev extension still containing them and copied into the root file system. The *.la files used in this way might need adjustment to match the most recent version of the library concerned.

Many source code packages are transitioning away from autotools, which means that missing *.la files are going to be an issue for some time to come.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: libdrm-dev
« Reply #6 on: September 20, 2019, 07:53:56 PM »
Many source code packages are transitioning away from autotools, which means that missing *.la files are going to be an issue for some time to come.

It's a death of a thousand cuts. Where can I find these:

/usr/local/lib/libglib-2.0.la
/usr/local/lib/libgmodule-2.0.la
/usr/local/lib/libgobject-2.0.la


Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11624
Re: libdrm-dev
« Reply #7 on: September 20, 2019, 08:02:36 PM »
Hi andyj
They are available here:
http://repo.tinycorelinux.net/10.x/x86_64/tcz/src/glib2/
By the way, this just came up a few days ago:
http://forum.tinycorelinux.net/index.php/topic,23194.0.html