In freebsd, how to know what options were enabled in kernel during Compiling

StackOverflow https://stackoverflow.com/questions/22320430

  •  12-06-2023
  •  | 
  •  

سؤال

After compilation, if one wants to know the different options which were enabled during compilation, how can one find out?

هل كانت مفيدة؟

المحلول

Assuming you have kernel config options and if your kernel was built with INCLUDE_CONFIG_FILE option, which should be enabled in GENERIC kernel config on recent BSD versions, then you can retrieve kernel config with sysctl kern.conftxt command.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top